Forum

TimeCurrent() does not work during optimization

Hi. I am trying to extract timeCurrent inside onInit() and onTick() to get optimization starting time and current time , but it returns 1970 when I try to Print these variables during onTesterPass or onTesterInit. Does anyone know what is the problem? Thanks

Custom indicator does not work in strategy tester

Hi everyone, I am wondering why this indicator work fine on charts, but fractals do no show up in strategy tester. Code is pretty simple shouldn't take much time to evaluate it. //+------------------------------------------------------------------+ //|

OnTrade() is working weird and strange.

Hello. I wanna implement Martingale strategy in my EA, after each losing trade the risk is multiplied by 2. However, after the first losing trade the risk multiplies by 64 and the EA stop working after that. Can someone expain what might go wrong? It's very important for me. Thanks double risk =

EA does not follow specified instructions.

Hi everyone. I have created EA which enters a long trade when RSI is above 70 and a short trade when RSI below 30. However, sometimes it enters either a short trade when RSI is above 30, and a long trade when RSI is below 70 which contradicts my if statement. In program, I have specified

What is the name of this reversal indicator?

This indicator paints green and red dots immediately after the open of a candle and it shows the major and minor reversal points. I will attach screenshot, please help me find this indicator. Thanks