Can anyone help me to create an EA
-
Hi I was wondering if anyone can help me with an EA. To me, it feels complicated. My strategy first involves checking the 30m timeframe. For a buy, the first condition is to have the price go above the parabolic SAR. Only valid If the 20ema is above the 50ema.
Once these conditions are met the next step is to look at 1min timeframe. When the MACD closes above zero line, a buy order will be placed.
A buy would become invalid if price broke below the low of the candle on the last candle on the 30 min time frame when price was below the SAR.
This low would also be my stop loss if a MACD cross did occur before this point. Take profit would be a 2:1 or next POI on 30 min timeframe.
For a sale trade its just opposite?
This is what I have so far and it is way off. https://fxdreema.com/shared/jbvpBB35
-
@Cpt_Cook You need to use 2 condition blocks for PSAR, 1st checks if PSAR is >< candle 1, 2nd checks if it's opposite, this way as soon as the dot changes the EA will react.
The MACD, this should work but maybe you just need to check if it's <>.

-
That makes a lot of sense. I will add the new conditions fo PSAR. and then will try <> for MACD but I don't want the trade to just open right away once the SAR condition is met. Having the MACD x> will give me a better entry on a pullback. Now I just need to figure out how to void a trade if the price pulls back too far.
https://docs.google.com/document/d/1VmKY5_aYJzC1sYatOHl2yOvAy0SlhqDCJhBMTXtkVC8/edit?usp=sharing
Ive put together a brief description, first showing the conditions on a 30 min timeframe then the pull back on the one minute. Its not the best example but at the very least it would have been a 1:1
Any idea how to void the trade if the price breaks back below the low of the last candle on the 30 minute time frame before the PSAR flip?
-
I see, by looking for <> MACD on candle 1 then you are selecting only if the candle has closed, also possibly MACD candle 2 is the opposite.