High of Low Period study


Category:
0
0

Hey Pete – I have an idea based on John Carter’s High of Low Period and Low of High Period (HOLP and LOHP respectively. I wasn’t able to find anything similar in the forums searching for “low candle” and “low period”. I have another study that is essentially how I’d like it to look, I’ll include a picture:

The study would look back over the previous 20 bars and identify:

HOLP: the lowest bar of the group, that is the bar with the lowest lows (Low-bar). The study would then add a green line at the high of that Low-bar, and the line would extend 10 bars forward.

LOHP: the study would do the same thing, only with the low of the High-bar of the last 20 bars, and it would have a red line extending forward the same amount.

Ideally, I would be able to turn off either LOHP or HOLP plots in the study settings so that I can toggle between using it in up/down trending markets.

I looked at the code in the study that I already have for scalps (pictured) to see if I could re-write it, but I got in the weeds pretty quick. Any help is appreciated, thank you sir.

 

Attachments:
Marked as spam
Posted by (Questions: 3, Answers: 1)
Asked on October 10, 2020 1:39 pm
216 views
0
Private answer

The only way to do this effectively is to use a looping structure that Thinkorswim calls "fold". I really hate using that because it is completely unlike the looping structures found in any other language in the universe. There is no way I can accomplish this solution in the limited time I allow for free solutions in the Q&A Forum.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on October 10, 2020 5:17 pm
0
Okay, thanks for the info - I'll take a look at it and report back if I come up with anything helpful.
( at October 10, 2020 9:43 pm)