Hi, could someone please help me
i am trying to code a buy signal when the current price Is greater than the high of a previous high point (swing point) in the market?
any ideas, i can only seem to go back a set number of periods, but that’s not specific enough
thanks
Lee
How do you want to determine when a point is a swing point?
Ok, good question. It’s easy to see on the chart, but harder to explain.
So, a swing point (SP) will always be a fractal. BUT not all fractals are swing points!
I have attached a photo of some SP marked up with green circles. They are easy to see on charts but I’m struggling with what makes them a SP to code.
Does the picture help or not? Or shall i try and put it into words
thank you
lee
Please define those swing points in terms of logic, in order to be coded.
Thanks Nicolas – ok, so lets say i want to identify every fractal in the market – lets just assume long to keep it simple
5 bar pattern, middle bar has the highest high, bar 2 is higher than bar 1, bar 3 is higher than all of them, bar 4 is higher than bar 5 but lower than 3.
How would i code that?
Thanks
Lee