Represents the minute of each bar loaded in the chart.
Syntax:
1 |
Minute |
Example:
Retrieve the timeframe of the current chart
1 2 3 4 5 6 |
tf = (minute-minute[1]) if tf<0 then tf=60-abs(tf) endif return tf |
Are we on last half-hour?
1 2 3 4 5 6 7 |
if(Minute>30) THEN HalfHour = 1 ELSE HalfHour = 0 ENDIF RETURN HalfHour |