Hi every one I am new to this coding business and need some help on something realy simple.
I want to create an EA with the following conditions.
Buy on the close of candle after "X" consecutive closes above "Y" SMA.
Exit trade at close of "Z" candles after entry.
Sell on the close of candle after "X" consecutive closes under "Y" SMA.
Exit trade at close of "Z" candles after entry.
I want to place a stop of "N"ATR
Want to be able to change parameters for X ,Y ,Z AND N
How can one limit the time to test say from 8h00 till 16h00
Want to test it on different time frames as well like 5 min or 15 min etc
Want to do some research and would appreciate your help.
Thanks in advance