Forum

How do I carry variables from one tick to the next?

Hi all, Inside my OnTick function I need to define a boolean ONLY after opening a trade and then redefine it later after a partial exit is triggered (on a later tick) - I then check this variable once there are open positions to determine if the first partial exit has happened or not, however this

How often do you calibrate your EA?

Hi all, I am working on my first EA trading system. I've developed the EA based on based on a paper on forex trading systems - so far I have no yet implemented SL/TP parameters but I have demonstrated profitability across multiple testing periods (typically I will 'calibrate' i.e optimize my input

Strategy Tester - Testing Data Wrong Period

Hi all, I am new to MQL5 but I aim to create my own trading system. This is also my first language similar to C and I was hoping you could help. When running the strategy tester, I have used the following code to load in any historical pricing data that I do not currently have - i.e 2013 in this