AlfyParticipant
Average
Good afternoon guys, im looking to create an indicator that shows when todays trading range (high – low) is the greatest of the last 10 trading days. Is there an easy way to code this please?
Thanks in advance
There you go:
Timeframe(Daily) //or Timeframe(Daily,UpdateOnClose)
HIrange = highest[10](range)
Timeframe(Default)
Return (HIrange = range) as “Max. Range”
AlfyParticipant
Average
One last thing, how can i change the code so that i find the largest trading range thats an upday (close-open) compared to only other updays of the last 10 trading days please? Any help much appreciated.
This will return the highest range of the updays in the last 10 days:
Timeframe(Daily) //or Timeframe(Daily,UpdateOnClose)
HIrange = highest[10](range * (close > open))
Timeframe(Default)
Return (HIrange = range) as “Max. Range”