Forgive me if this has been asked ad-nauseam in previous posts, but I couldn't find the answer.
I'm trying to get a horizontal line drawn whenever the price of a security goes above the high of any of the last 30 candlesticks for a single security. The horizontal line would equal the current bar close.
Here's what I'm currently trying with the Strategy Tool:
User Defined Inputs: (None)
Conditions and Actions - Set 1:
When the following conditions are true:
High[0] > High[30]
Do the following:
DrawHorizontalLine("high" + CurrentBar, High[30], Color.Green)
I've also tried using "HighestBar" and "Close" up above, but nothing is showing up.
Note that I'm testing one trading day for a security.
Please help when you have a moment. I know I'm doing some rather dim.
Yours,
Spider
Comment