Reputation: 59
I have worked out the daily bars range, say from high-low.
I want to be able to say 'From todays open, if the price goes up 50% of yesterdays range then go long.
Saw some people say 'close' is the word for current price, but I don't want to wait for the daily candle to close, I want to enter that long as price hits that 50% during the day.
Just cant figure out how to put that into my code, any ideas or help would be great, thanks
Upvotes: 4
Views: 16979
Reputation: 21342
close
refers to current price in real-time. With every new price change, its value will be updated to the latest price value.
Just plot close
and watch it in real-time and you will see.
Upvotes: 8