Hello,
I’m trying to modify the Real Times Swings efs to show the current trend by colouring the lines red or blue. (Please see picture)
I thought the easiest way to do this would be to compare the values for y1a and y2b:
y1a > y2b = down trend, line therefore should be red.
y1a < y2b = up trend, line therefore should be blue.
This seemed to give me some correct results and some incorrect results; I discovered that this was because the y2b value is the value at which the previous trend is confirmed (see pink highlighted lines on attached picture).
A way I see of solving this would be to instead compare y1a from the last swing (Xx) to either y1b or y2a of the current swing.
Does anyone have any suggestions on how to create a variable to capture the Xx value or perhaps another suggestion on how to solve this issue?
Thanks
Aengus
I’m trying to modify the Real Times Swings efs to show the current trend by colouring the lines red or blue. (Please see picture)
I thought the easiest way to do this would be to compare the values for y1a and y2b:
y1a > y2b = down trend, line therefore should be red.
y1a < y2b = up trend, line therefore should be blue.
This seemed to give me some correct results and some incorrect results; I discovered that this was because the y2b value is the value at which the previous trend is confirmed (see pink highlighted lines on attached picture).
A way I see of solving this would be to instead compare y1a from the last swing (Xx) to either y1b or y2a of the current swing.
Does anyone have any suggestions on how to create a variable to capture the Xx value or perhaps another suggestion on how to solve this issue?
Thanks
Aengus
Comment