Question
-
https://fxdreema.com/shared/KUb43ToXd
I have this custom indicator:0_1604796249486_Swing_ZZ.mq4Does any one know if it is possible to know whether, after a red dot has the last candle closed below the last blue dot, or whether after a blue dot has the last candle closed above the last red dot? Maybe a way to store the previous dot price value into a variable. Many thanks.
-
@jstap Are you sure your custom indicator doesn't repaint? I guess it does. In that case the whole EA would be pointless.
-
Hi l'andorra, it does repaint but only the current dot, I am only wanting to reference one of the previous dots. thank you
-
https://fxdreema.com/shared/oOPyJEH6c
I have created this but it only tells me the current red or blue price position, it is only their when price is increasing or decreeing, it would be nice if it stayed visible in-between price rising or falling but I don't really need this info. I still can't get previous dot price though.
-
https://fxdreema.com/shared/yGNetPlme
This is the latest version but it still doesn't show the previous dot value.
-
@jstap This is the way to get the previous candle's dot value:

-
@l-andorrà thank you. I know how to get the previous candle dot value, getting a EA to find the previous dot is what I need, this could be the candle ID or price. I have tried for 3 days now and I do not think it is possible with the current available blocks.
-
I have now used Miro1360's amazing tutorial to use the standard ZigZag, the custom displayed slightly different on the chart, but this should suffice for now.
-
@jstap Great news. Good for you.
