QuoteDisliked1- Criterion for a buy order: it places a buy order only if 9 period moving average is above 21 period moving average, and a candle stick closes above the high of previous 5 candlesticks. The stop loss is 10 points below low of that candle stick. It moves the stop loss to the low of a candle stick if it has a higher high than the previous candle stick.
2- Criterion for a sell order: it places a sell order only if 20 period moving average is below 40 period moving average, and a candle stick closes below the low of previous 5 candlesticks. The stop loss is 10 points above the high of that candle stick. It moves the stop loss to the high of a candle stick if it has a lower low than the previous candle stick.
3- It opens a new order only when a previous order is closed.
4- The ea should have an option to be working on 1 minute, 5 minute, 15 minute, 30 minute, 1 hour, 4 hour time frame.
5- There should be an input parameter for the type of slow and fast moving average.
6- There should be an input parameter for lot size.
UPDATE 2024.05.25 16:58 UTC+1 !!!
Tested in Strategy Tester
Attached File(s)
2MACandleBreakOut_EA.ex4
34 KB
|
85 downloads
See also:
https://www.forexfactory.com/thread/...0#post14879380
Do not change the file name!!!
I have also created an indicator for this idea, so we can see how it works:
Attached File(s)
2MACandleBreakOut_Indicator.ex4
26 KB
|
86 downloads
Do not change the file name!!!
If you're looking for the Holy Grail indicator - STOP!
1