You are performing this function with an error. You are requesting trade history incorrectly. And most importantly - you do not need an action. You need to request ONE deal.
Thanks Vladimir!
I try to change my code maybe use other solution. In fact I create offline database to manage my position and money managment cause i need to know when real stoploss occurred to update database. I think detect Syncron Real Stoplosses in MQL5 is a big Challenge.
I try to change my code maybe use other solution. In fact I create offline database to manage my position and money managment cause i need to know when real stoploss occurred to update database. I think detect Syncron Real Stoplosses in MQL5 is a big Challenge.
You can create any base - but in OnTradeTransaction you have to copy ONLY ONE TRANSACTION!
And one more thing: there is no problem to catch transactions if Stop Loss or Take Profit is triggered.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You are performing this function with an error. You are requesting trade history incorrectly. And most importantly - you do not need an action. You need to request ONE deal.
Thanks Vladimir!
I try to change my code maybe use other solution. In fact I create offline database to manage my position and money managment cause i need to know when real stoploss occurred to update database. I think detect Syncron Real Stoplosses in MQL5 is a big Challenge.
Thanks Vladimir!
I try to change my code maybe use other solution. In fact I create offline database to manage my position and money managment cause i need to know when real stoploss occurred to update database. I think detect Syncron Real Stoplosses in MQL5 is a big Challenge.
You can create any base - but in OnTradeTransaction you have to copy ONLY ONE TRANSACTION!
And one more thing: there is no problem to catch transactions if Stop Loss or Take Profit is triggered.
Example: tracking the triggering of Stop Loss or Take Profit