Forum

Help on simple Breakout strategy

Hi, I'm building as exercise a simple EA that open a long or short trade at the breakout of the 7am candle. I've written the below code but, as my idea was to set the "entry point" only at the 7am hourly candle, the IF i've inserted for checking the hour is not let passing the variables of entry

Introduction of Time condition

Hi, i need to insert a time condition on which the EA trade only between 2pm and 5pm (variables that I will change on backtesting ). I've read several thread but cannot find a way to understand to how to manage "time variables" properly. Any idea on implement it very easily? (an IF Timecurrent > 2pm

How to set a pending order at a specific Hour

Hi, I need to set a pending order that calculate the entry and place itself exactly at 9am every day (Mon to Friday) I've set the following code, but seems that it is not opening anything. I have to backtest it so I'm not sure if I'm using the "system time" or the "backtesting time", not sure how to