Hi there,

Is it possible to make a telegram group where I get some signals from my trading bot? And Is it possible to send a telegram message when there is a buying opportunity?

And were do I find all this information? 

 I found this one:

https://lean-api-docs.netlify.app/classQuantConnect_1_1Notifications_1_1NotificationTelegram.html

But how do I put this in my code?

  1. {
  2. //PLACING ORDER
  3. var quantity = NormalizeQuantity(symbol, btcAmount / data[symbol].Close);
  4. //var msg = $"\n\n AANKOOP ter waarde van {btcAmount} BTC | {symbol} Hoeveelheid: {quantity} voor een bedrag van {usdAmount} euro | Aankoopprijs {symbol} van {data[symbol].Price}BTC\n\n";
  5. //Log(msg);
  6. //Debug(msg);
  7. if (quantity == 0) continue;
  8. MarketOrder(symbol, quantity);
  9. Plot("Trades", "AANKOOP", price);
  10. Debug($"\n\n ********** AANKOOP: {symbol} aankoopprijs {data[symbol].Price} ter waarde van {usdAmount}euro **********\n\n"); // Als het order gemaakt is word dit bevestigd door de debug
  11. //Notify.Email("***@gmail.com", "TradeAlert",$"Gekocht {symbol} op {data[symbol].Price}");
  12. Log($"prijs {price} en Max 24uur {symbolData.MaxExchange} en MIN 24uur {symbolData.MinExchange}");
  13. symbolData.TargetPrice = price * (1 + _targetPercent); //DETERMINE WICH SELLING PRICE WHEN PROFIT.
  14. symbolData.StopPrice = price * (1 - _stopPercent); //DETERMINE WICH SELLING PRICE WHEN LOSS.
  15. }
+ Expand

Thanks in advance.

Greetings,

David

Author

Vronghel

January 2022