Constant which is customizable in the settings window of the chart (default: close).
Syntax:
1 |
CustomClose[N] |
Constant which is customizable in the settings window of the chart (default: close).
Syntax:
1 |
CustomClose[N] |
Get the value of the “Cycle” technical indicator on price selected.
Syntax:
1 |
Cycle(price) |
Example:
1 2 3 4 5 6 7 8 9 10 11 |
c = Cycle(close) if(c > 0) THEN Bullish = 1 Bearish = 0 ELSE Bullish = 0 Bearish = -1 ENDIF RETURN Bullish coloured(0,128,0), Bearish coloured(255,20,147) |
Reports the date of the selected N bar of the current chart in YYYYMMDD format.
Syntax:
1 |
Date[N] |
Reports the day of the selected N bar of the current chart in DD format.
Syntax:
1 |
Day[N] |
Give you the day of the week of the N selected bar of the current chart.
Syntax:
1 |
DayOfWeek[N] |
Reports number of days elapsed since year 1900 at selected N bar of the current chart.
Syntax:
1 |
Days[N] |
Return the close value of the Daily timeframe of the N bar before the current one.
Syntax:
1 |
DClose(N) |
Example:
1 2 3 4 5 6 |
//Giving the weekly close on each Friday bar if(DayOfWeek[0] = 5) THEN LastWeekClose = DClose(5) ENDIF RETURN LastWeekClose |
Lets you define parameters like CumulateOrders or FlatBefore / FlatAfter..
Syntax :
1 |
DEFPARAM |