DEV Community

Discussion on: Building a Telegram Chat with a MT4 Forex Trading Expert Advisor

Collapse
 
rickyzimm profile image
RickyZimm • Edited

Hello i have a question.

The TelegramAlert script is working and i added a pip win/loss on close notification but there is 1 thing i cannot program myself and that is order modify notification.

It notifies when Open, Closing, Pending but if i change my SL or TP i also want to be notified in telegram.
Is that possible?

So i open an order with no TP and SL ----> Telegram notification of new opened order.
I change TP or SL -----> Notify on telegram that a new TP or SL has been set

So what i want is:
I open a order...

--- OPEN ORDER ---
Symbol: EURO/USD
Type: BUY
Open Price: 1.24000

TP: 0.00000 SL: 0.00000

Now i add a SL and TP to the order.

--- MODIFIED ORDER ---
Symbol: EURO/USD
Type: BUY
Open Price: 1.24000
TP: 1.24100 SL: 1.23900

I dont want to control my trades with telegram, but only want to be notified if an order changes.
Can someone help with that?
That would be great. :-)