JSParticipant
Senior
The whole code is under the time frame of a week, so [20] = 20 weeks ago…
About the text: you forgot to assign a value to the “SwingHigh” and the “SwingLow”
SwingHigh = High[1]
SwingLow = Low[1]
@JS do you know how to use your code or mine on Daily TF but for draw the Weekly Swing low and high like on the picture I add
JSParticipant
Senior
@ZeroCafeine
I can take a look at it tonight…
I think that’s because you are using BARINDEX of a weekly chart over a daily chart, so the X coordinate is wrong.
Chaged like this for me to be more visual.
I set nOffsetA=1 and nOffsetT=3
you can remove the line 4 😅
Pipi = pipsize
I think that’s because you are using BARINDEX of a weekly chart over a daily chart, so the X coordinate is wrong.
I think too, but what is the soltuion or maybe you have a link for pls ?
JSParticipant
Senior
You can use the indicator on any time frame you want but you cannot use multiple (different) time frames at the same time because indeed the X coordinates (BarIndex) of the different time frames are not “in sync”.
I don’t know a solution for this…
You just have to use the daily timeframe BARINDEX whenever the condition of your weekly timeframe is valid to draw something.
You just have to use the daily timeframe BARINDEX whenever the condition of your weekly timeframe is valid to draw something.
can you give any example with using different Barindex from different TF on the same chart pls ?, any example