Optionalsmoothinginteger min 1 max 1999
OptionalsmoothingOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
ATR('atr_'); // smoothingPeriod 14, smoothingType SMA, current bot symbol, timeframe 1Min
Modifying smoothingPeriod:
ATR('atr_sp21', {smoothingPeriod: 21}); // smoothingPeriod of 21
Modifying smoothingType:
ATR('atr_stEMA', {smoothingType: 'EMA'}); // smoothingType EMA
Modifying symbol/ticker:
ATR('atr_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
ATR('atr_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
ATR('atr_sp21_stEMA_AAPL_tf5Min', {smoothingPeriod: '21', smoothingType: 'EMA', symbol: 'AAPL', timeframe: '5Min'});
ATRP (Average True Range Percent) indicator (https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/atrp).
Optionalsmoothinginteger min 1 max 1999
OptionalsmoothingOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
ATRP('atrp_'); // smoothingPeriod 14, smoothingType SMA, current bot symbol, timeframe 1Min
Modifying smoothingPeriod:
ATRP('atrp_sp21', {smoothingPeriod: 21}); // smoothingPeriod of 21
Modifying smoothingType:
ATRP('atrp_stEMA', {smoothingType: 'EMA'}); // smoothingType EMA
Modifying symbol/ticker:
ATRP('atrp_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
ATRP('atrp_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
ATRP('atrp_sp21_stEMA_AAPL_tf5Min', {smoothingPeriod: '21', smoothingType: 'EMA', symbol: 'AAPL', timeframe: '5Min'});
ATR (Average True Range) indicator (https://www.investopedia.com/terms/a/atr.asp).
OptionalformatOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
BAR('tickerOnClose'); // current bot symbol, timeframe 1Min
Modifying symbol/ticker:
BAR('tickerOnClose_aapl', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
BAR('tickerOnClose_5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
BAR('tickerOnClose_aapl_5Min', {symbol: 'AAPL', timeframe: '5Min'});
DMI (Directional Movement Index) indicator (https://www.investopedia.com/terms/d/dmi.asp).
OptionalDILength?: numberinteger min 1 max 1999
OptionalDIMAType?: "SMA" | "EMA" | "RMA"Optionalsmoothinginteger min 1 max 1999
OptionalsmoothingOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
DMI('dmi_'); // DILength 14, DIMAType SMA, smoothingPeriod 14, smoothingType SMA, current bot symbol, timeframe 1Min
Modifying DILength:
DMI('dmi_diLength9', {DILegnth: 9}); // DILength of 9
Modifying DIMAType:
DMI('dmi_ema', {DIMALength: 'EMA'}); // DIMALength EMA
Modifying smoothingPeriod
DMI('dmi_sp7', {smoothingPeriod: 7}); // smoothingPeriod 7
Modifying smoothingType
DMI('dmi_stRMA', {smoothingType: 'RMA'}); // smoothingType RMA
Modifying symbol/ticker:
DMI('dmi_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
DMI('dmi_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
DMI('dmi_diLength9_ema_sp7_stRMA_AAPL_tf5Min', {DILength: 9, DIMALength: 'EMA', smoothingPeriod: '7', smoothingType: 'RMA', sourceType: 'open', symbol: 'AAPL', timeframe: '5Min'});
EMA (Exponential Moving Average) indicator (https://www.investopedia.com/terms/e/ema.asp).
Optionalsmoothinginteger min 1 max 1999
OptionalsourceOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
EMA('ema_'); // smoothingPeriod 14, smoothingType SMA, sourceType close, current bot symbol, timeframe 1Min
Modifying smoothingPeriod:
EMA('ema_sp9', {smoothingPeriod: 9}); // smoothingPeriod of 9
Modifying smoothingType:
EMA('ema_stEMA', {smoothingType: 'EMA'}); // smoothingType EMA
Modifying sourceType
EMA('ema_open', {sourceType: 'open'}); // sourceType open
Modifying symbol/ticker:
EMA('ema_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
EMA('ema_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
EMA('ema_sp9_stEMA_open_AAPL_tf5Min', {smoothingPeriod: '9', smoothingType: 'EMA', sourceType: 'open', symbol: 'AAPL', timeframe: '5Min'});
MACD (Moving Average Convergence/Divergence) indicator (https://www.investopedia.com/terms/m/macd.asp).
Optionalfastinteger min 1 max 1999
OptionaloscillatorMAType?: "SMA" | "EMA" | "RMA"Optionalsignalinteger min 1 max 1999
OptionalsignalMAType?: "SMA" | "EMA" | "RMA"Optionalslowinteger min 1 max 1999
OptionalsourceOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
MACD('macd_'); // fastLength 12, oscillatorMAType EMA, signalLength 9, signalMAType EMA, slowLength 26, sourceType close, current bot symbol, timeframe 1Min
Modifying fastLegnth and slowLegnth:
MACD('macd_fl9_sl21_signall5', {fastLength: 9, slowLength: 21, signalLength: 5}); // fastLength 9 and slowLength 21 and signalLength 5
MACD('macd_oRMA_sRMA', {oscillatorMAType: RMA, signalMAType: RMA}); // oscillatorMAType RMA and signalMAType RMA
Modifying symbol/ticker:
MACD('macd_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
MACD('macd_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
MACD('macd_fl9_sl21_signall5_oRMA_sRMA_stClose_AAPL_tf5Min', {fastLegnth: 9, slowLength: 21, signalLength: 5, oscialltorMAType: 'RMA', signalMAType: 'RMA, symbol: 'AAPL', timeframe: '5Min'});
OBV (On Balance Volume) indicator (https://www.investopedia.com/terms/o/onbalancevolume.asp).
integer min 1 max 1999
Optionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
OBV('obv_'); // smoothingPeriod 14, smoothingType none, current bot symbol, timeframe 1Min
Modifying smoothingPeriod:
OBV('obv_sp7', {smoothingPeriod: 7}); // smoothingPeriod of 7
Modifying smoothingType:
OBV('obv_stEMA', {smoothingType: 'EMA'}); // smoothingType EMA
Modifying symbol/ticker:
OBV('obv_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
OBV('obv_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
OBV('obv_sp7_stEMA_AAPL_tf5Min', {smoothingPeriod: '7', smoothingType: 'EMA', symbol: 'AAPL', timeframe: '5Min'});
RMA (Relative Moving Average) indicator (https://www.tradingcode.net/tradingview/ema-versus-rma/).
Optionalsmoothinginteger min 1 max 1999
OptionalsourceOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
RMA('rma_'); // smoothingPeriod 14, smoothingType SMA, sourceType close, current bot symbol, timeframe 1Min
Modifying smoothingPeriod:
RMA('rma_sp9', {smoothingPeriod: 9}); // smoothingPeriod of 9
Modifying smoothingType:
RMA('rma_stEMA', {smoothingType: 'EMA'}); // smoothingType EMA
Modifying sourceType
RMA('rma_open', {sourceType: 'open'}); // sourceType open
Modifying symbol/ticker:
RMA('rma_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
RMA('rma_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
RMA('rma_sp9_stEMA_open_AAPL_tf5Min', {smoothingPeriod: '9', smoothingType: 'EMA', sourceType: 'open', symbol: 'AAPL', timeframe: '5Min'});
RSI (Relative Strength Index) indicator (https://www.investopedia.com/terms/r/rsi.asp).
Optionalloseinteger min 1 max 1999
OptionalloseOptionalsmoothinginteger min 1 max 1999
OptionalsmoothingOptionalsourceOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
RSI('rsi_'); // loseGainPeriod 14, loseGainType RMA, smoothingPeriod 14, smoothingType none, sourceType close, current bot symbol, timeframe 1Min
Modifying loseGainPeriod:
RSI('rsi_lgp3', {loseGainPeriod: 3}); // loseGainPeriod of 3
Modifying loseGainType:
RSI('rsi_lgt3', {loseGainType: 'EMA'}); // loseGainType EMA
Modifying smoothingPeriod:
RSI('rsi_sp3', {smoothingPeriod: 3}); // smoothingPeriod of 3
Modifying smoothingType:
RSI('rsi_stEMA', {smoothingType: 'EMA'}); // smoothingType EMA
Modifying sourceType:
RSI('rsi_sttOBV', {sourceType: 'OBV'}); // sourceType OBV
Modifying symbol/ticker:
RSI('rsi_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
RSI('rsi_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
RSI('rsi_lgp3_lgt3_sp3_stEMA_sttOBV_AAPL_tf5Min', {loseGainPeriod: 3, loseGainType: 'EMA', smoothingPeriod: '3', smoothingType: 'EMA', sourceType: 'OBV', symbol: 'AAPL', timeframe: '5Min'});
RVWAP
Optionalbandinteger min 0 max 100
Optionalbandinteger min 0 max 100
Optionalbandinteger min 0 max 100
Optionalperiod?: numberinteger min 1 max 1999
Optionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
RVWAP('rvwap')
tick = (i, b) => {
i.rvwap().rollingVWAP // Decimal;
i.rvwap().upperBand1 // Decimal;
i.rvwap().lowerBand1 // Decimal;
i.rvwap().upperBand2 // Decimal;
i.rvwap().lowerBand2 // Decimal;
i.rvwap().upperBand3 // Decimal;
i.rvwap().lowerBand3 // Decimal;
}
SMA (Simple Moving Average) indicator (https://www.investopedia.com/terms/s/sma.asp).
Optionalsmoothinginteger min 1 max 1999
OptionalsourceOptionalsymbol?: stringOptionaltimeframe?: stringTo use, add/import the indicator, define name, and optionally define the props. Default props only:
SMA('sma_'); // smoothingPeriod 14, smoothingType SMA, sourceType close, current bot symbol, timeframe 1Min
Modifying smoothingPeriod:
SMA('sma_sp9', {smoothingPeriod: 9}); // smoothingPeriod of 9
Modifying smoothingType:
SMA('sma_stEMA', {smoothingType: 'EMA'}); // smoothingType EMA
Modifying sourceType
SMA('sma_open', {sourceType: 'open'}); // sourceType open
Modifying symbol/ticker:
SMA('sma_AAPL', {symbol: 'AAPL'}); // AAPL symbol/ticker
Modifying timeframe:
SMA('sma_tf5Min', {timeframe: '5Min'}); // 5Min timeframe
Modifying all props:
SMA('sma_sp9_stEMA_open_AAPL_tf5Min', {smoothingPeriod: '9', smoothingType: 'EMA', sourceType: 'open', symbol: 'AAPL', timeframe: '5Min'});
ATR (Average True Range) indicator (https://www.investopedia.com/terms/a/atr.asp).