Forum

Help with retrieving equity from historical deals

Hello everyone, hope everyone is keeping well. Just have an issue with the following functions code. All I am trying to do is get a load of data sent to a CSV file from a strategy test. I run the function in the OnTester() function once the strategy test has completed. I have managed to get

Help required with nested FOR loops and arrays (MQL5)

Hello everyone - The function below has been designed to get ENTRY & EXIT deals and their associated position IDS. This is working fine. - I have checked that the arrays are getting populated correctly and they build upon every iteration of their 'for' loops. PROBLEM: The issue is happening because

Help with OnTradeTransaction() function in closing deals

In the following MQL5 OnTradeTransaction() function allows me to retrieve 'deal' data and output it to a CSV file one deal at a time. (My EA simply works on the basis of opening market orders - no pending orders ) This is outputting the data fine. void OnTradeTransaction ( const MqlTradeTransaction

Please require help with "array out of range error". Simple bullish/bearish indicator setup.

I have been trying to rectify an issue I've had for a while now and could really do with some help please. I am trying to create an indicator that shows the Bearish/Bullish Engulfing patterns (trying to build up my skills). I first created a similar FindHammerPattern() function which worked really