Entry after X consecutive closes above Y SMA - NEED HELP
-
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 etcWant to do some research and would appreciate your help.
Thanks in advance -
For the "consecutive closes" I will suggest the block named "Indicator moves within limits". One of the indicators will be where it is defined by default. The other one will be when you select "Dynamic value" for Upper or Lower mode.
Better test how this works with some "Draw Arrow" block, and then do something else.
There is a block named "Time filter". Also "Hours filter".
For input parameters look at "Constants (Inputs)"...
or look and test some projects from https://fxdreema.com/examples