what is the easiest way to display the highest high and lowest low of an intraday session? for example: let's say today the market had a low at 3.000 points and the high at 3.500. I'd like to have the result 500 into a variable called "todaysRange" so I can draw.textfixed it onto a corner. I already looked into the indicator "CurrentDayOHL" but this looks oversized and confusing to me.
Is there a simpler way to achieve this? I want to add that I want to have it worked in mode "calculate on price change" because I don't want to wait until a 60min bar finishes. Any clues?
EDIT: I guess I've found a solution
int highestBarsAgo = HighestBar(High, Bars.BarsSinceNewTradingDay); int lowestBarsAgo = LowestBar(Low, Bars.BarsSinceNewTradingDay); double todaysRange = High[highestBarsAgo]-Low[lowestBarsAgo];

thank you!
Comment