Candle cross MA
-
Hello everyone,
I'm new to learning fxdreema ,I would like to get some help with setting an alert when a candle stick crosses a MA.Like in the image
-
Like in this image

-
This is one way to do it:

-
Hey Thanx l'andorra I've managed to get it working .
The problem that I'm running into now is that I've added two more MA's so I wold get a signal when the candle closes though all three MA to the Upside . Once all 3 conditions are met I draw an arrow on that candle. I'm getting perfect signals but also false signals were only two conditions are met. Am I going about my node logic correctly?



-
You should specify Candle ID 1 on all operands on all Condition blocks.
-
I its working now I've added more to the strategy to get long and short signals.(Red arows short and green long)
For the second part of the strategy How would I set up the logic once the signal condition is meet I would have to wait for the price to pull back and retest the MAs for the setup as in the image.

-
Is the setup case given, when price crosses middle line of Bollinger bands and than goes back under (short trade) or vice versa (long trade)?
If not, try to formulate the usecase when the setup is given. The EA needs an algorythm to work with. -
I have set up my condition for the setup but it requires two time frames .On the H4 Price must test the MA (blue line) and print a blue arrow and on H1 price must have tested the top Bollinger and print a yellow arrow band.I have set up the logic for a short setup. When testing I'm getting the results that i need from the algo but Im still skeptical as to whether or not its doing the right thing.Here are my conditions


-
Apparently it's correct. Testit thoroughly, though.
-
I have my signal and setup algos done .How Do I combine the two so that I will only get a setup only when the signal has been confirmed.

-
@hani-1 Looks like they never occur at the same time, right? Can you specifiy in what thime (or candles on which tf) they should occur? Are there circumstances that would validate or void the conditions?
-
Yes they don't occur at the same time .The main time frame I am focusing on is the 4H. Once the signal is validated then can the setup be triggered.