Using the OnTradeTransaction function of mql5, how do I get the price when a buy stop order is triggered
Hello all, apparently this is a newbie question. I wish to get the mql5 code that listens for trade transactions using the OnTradeTransaction function and prints a message showing the price when a buy stop order is triggered. Please help as I don't even know where to start from after declaring the OnTradeTransaction function. Thank you very much
![Documentation on MQL5: Language Basics / Functions / Event Handling Functions Documentation on MQL5: Language Basics / Functions / Event Handling Functions](https://c.mql5.com/36/83/documentation-on-mql5-language__1.png)
Documentation on MQL5: Language Basics / Functions / Event Handling Functions
- www.mql5.com
The MQL5 language provides processing of some predefined events . Functions for handling these events must be defined in a MQL5 program; function...
- Using OnTradeTransaction to manage position replacement
- Calling a function after stoploss triggered
- Failed to update ticket when stop order is filled
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register