a problem with stochastic ma crossover ea
-
hey guys
i tried to build a stochastic ma crossover expert but i have a big problem when i run it it only takes signals when the stochastic crosses over the 20 or bellow 80 lines but the ma crossvers must happen after the stochastic signal right away i need the ea to take the stochastic signal and then wait tell the crossover happens what blocks should i add.
here is the ea build : https://fxdreema.com/shared/rnJbXiVRc
-
split the buy and sell columns to have their own separate, no trade, block, and specify each to be respectively be "buy" or "Sell" type.
-
@jsauter86 can you please check you inbox
-
@axmed69 You need to create a boolen variable used as a 'switch on', 'switch off' control telling you when the crossing happened. Then you can combine it with the stochastic condition.
-
@l-andorrà is there is any youtube video or tutorial for that ?
-
@axmed69 I'm afraid not. But we can try it here of you want.
-
@l-andorrà the idea of the ea is that when the stochastic crosses above or bellow 80 / 20 it waits for the a moving avrage crossover then it buys or sell. i found blocks that says turn on / off other blocks but they dont seem to work here is what i did so far can you take alook please ?
https://fxdreema.com/shared/LOoqv3pue -
i take a backtest on my chart with your given indicator parameter, which one shall came first?
stochastic crossing then followed by MA crossing?because your block just telling that If MA 5 greater than MA 144 means buy and vice versa, there is no detection of MA crossing.
AFAIK, if you want to detect crossing on MA which triggering BUY signal you need to createMA 5 on previous bar < MA 144 Previous bar
MA 5 current bar > MA 144 Current baryou can use Candle ID = 1 for Previous Bar, and
Candle ID = 0 for Current BarBecause there is no MA Crossing conditions,
it will take signal from Stochastic only.
CMIIW -
@axmed69 The problem is those blocks turning on and off other block BELOW them. Try not to do that unless strictly necessary. Just move them away from their current positions and let the condition blocks to connect to each other.