Trendline by wick
-
Hi can any one pls help.
I have to draw trendline by the wick of candle and for the strategy not allow any wick or candle overstep the trendline for correct angle.
I use zigzag for pin the point for trendline but sometime have any candle overstep the trendline
If between low0 and low1 was candle overstep trendline how can I detect and re-paint new trendline with new point to that wick
for manual draw it very simple trendline but for EA logic any one have idea pls help.Thank you

-
-
your logic is unclear to me..
you want to draw a line between the wicks of the last 2 zigzag highs and lows?
-
sorry my bad ENG. I want to draw a trend line (in case downtrend) from wick to wick but by the highest wick I can that not made any thing overstep the line
-

-
what are the rules for the hh hl to take? home many pars back and when to connect which?
-
for me it could also look like this... i dont see the rules which point to use for what, do you see what i mean ?

-
@bk7 said in Trendline by wick:
me it could also look like
I think we can add number of look back bar and Timeframe for scope area of focus strategy also
-
Exsample
I focus M15 zigzag 500 bar saw it made the downtrend structure
1st I draw line from wick of Higher High to Lower High but it have some candle overstep the line
2nd I need to detect some candle that overstep the line and re-pin the point of line to the highest wick (on 1st line) that according to rulehow can I make the loop for check that? this is my idea. pls suggest
-
ok so you want to look back 500 bars
how many upper/lower zigzags do you want to store temporarly?
how will you decide if you draw a trendline with the upper or lower zigzags?
which zigzags do you take into account for the first trendline? -
@bk7 in case need to loop check for highest to lowest
-
i am trying to help you, but you would have to answer my questions, otherwise i cant help you.
and you need to build a ruleset for the questions above... -
Thank a lot.
now I can draw line from highest high to lowest high of zigzag for look back xxx bar.
I will try to use loop for another check to repaint line for the strategy also. -
@bk7 Please give me the flowchart of this setup. ل