Is there any way to track if custom indicator changes its value. For example how to use as a condition in If() that Highest.Series value changed?
Thank you.
Size:
Color:
Save the indicator's value to a variable and compare.
CODE:
Please log in to see this code.
Size:
Color:
Or more simply, to see if the value changed from the previous bar...
CODE:
Please log in to see this code.
Size:
Color:
Thank you. How can I restart series to count it from market open every day? I use highest.series, but when new day starts it get value from previous day.
Size:
Color:
See IntradayBarNumber in the QuickRef. It's 0 on the first bar of a trading session.
Size:
Color:
This might not be obvious, so to get the highest High for the current day in an intraday chart...
CODE:
Please log in to see this code.
Size:
Color:
Size:
Color:
But actually, that´s a very inefficient solution because the Value method has to go through every bar of the day on each bar. This is much more efficient -
CODE:
Please log in to see this code.
Size:
Color: