issue with plotting second order pivot


Category:
0
0

Hi, I am trying to create a study that plots second order pivots (definition and visualization of the study is given in the attached image). Attached is the code that I have written (could not add into description due to length of post) which does not seem to have any issues with syntax but fails to return any plot when added onto my charts. I am completely lost at this point. Would appreciate any feedback possible. TIA.

Attachments:
Marked as spam
Posted by (Questions: 4, Answers: 2)
Asked on June 3, 2020 9:39 pm
138 views
0
also failed to mention that first order pivots also includes lows that are preceded and succeeded by higher lows from the prior and following candles
( at June 3, 2020 9:41 pm)
0
Private answer

Evaluating code of this complexity is light-years beyond the scope of what we cover in the Q&A forum. I only have 15 min to provide solutions here. I avoid using the fold statement in Thinkorswim at all cost. So I would not even be interested in evaluating your code for a fee.

Your question has already been posted in the forum multiple times:

https://www.hahn-tech.com/ans/short-intermediate-long-term-swing-points/

That post explains my solution and suggestions and I have nothing more to say on this topic.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 4, 2020 7:11 am