I need major help can someone PLEASE HELP lol
-
I am trying to create a simple EA that trades in the same direction of the 200 moving average with entries when price hits or crosses middle band upper band or lower band with a wick. I can't get it to place trades once a candle has closed / the open of the new candle. here's the link to what I have but it's not working as planned.
Ruleset
If 200 ma is sloping Up enter a buys when price pulls back to middle band and closes with a wick. OR crosses/ hits lower band and closes with a wick.If 200 ma is sloping Down enter a Sells when price pulls back to middle band and closes with a wick. OR crosses/ hits upper band and closes with a wick.
Also if you have any recommendations for a good way to trail stops based on structure or price action or anything im all ears!!!!
Here's the link to what I've got so far
(https://fxdreema.com/shared/ufqyS5mtb)Thanks in advance.
-
I never used the 'single candle template' block. As far as I can see all other blocks are correct. I guess the problem is how to define that 'price pulls back to middle band' rule. Could you please upload an image showing what you need?
-
@l-andorrà
Hey thanks for your help. The pull back to the middle line looks like this for buys.

Basically when price goes up above it then comes back down to touch it cross it etc. If the candle closes with a wick enter a buy. At the open of the next candle.
Sells would look the same just opposite.
-
@FXDREEMA Hey would you mind taking a look at this please I can't seem to get the EA to execute the trade at the open of the candle it keeps opening in the middle.
-
Well, your screenshot is showing at least three different ways to consider a pull back:
Option 1. A bear candle with low below middle line and then a bull casndle with close above middle line.
Option 2. A bear candle with low below middle line and then several bear and bull candles until a bull one closes above middle line.
Option 3. A bear candle with low below middle line and then a hammer.
Do you begin to see what you need? You wil have to create different tree condition blocks covering all those options. Are there any other possibilities not included in the image?
-
@l-andorrà
I thought I replied to this a while ago sorry for the delay.I might be thinking of it the wrong way as far as programming goes but I’m thinking more in simple terms. The candlestick just has to cross/hit the band (middle or lower band) and close with a wick on the bottom for buys. Then the trade should be entered after the close of the candle. In other words the bands has to be some where between the high and the low the candle.
As of now I’m pretty sure it’s entering on the right candle however it’s entering trades in the middle of the candle, not waiting for the candle to close.
-
Then you need a 'Once per bar' block. That way you will be sure the EA will be entering at the open price of the next candle closing above the line.
-
Yea I tried that didnt work for me
would you mind giving me a example how it should be