Primitives

sessionCombo

Continuously evaluate named indicator combos and plot long/short signals

sessionCombo (all)

Continuously evaluate named indicator combos and plot long/short signals

Input parameters

PropTypeDefaultDescription
idstring-Optional combo instance id
combostringema_macd_rsiNamed combo to evaluate: ema_trend, ema_cross, ema_macd_rsi, macd_ema, donchian_breakout, donchian_full_cycle, vwap_ema, supertrend, dmi_adx, bollinger_mean_reversion, volume_breakout, atr_trail, structure_macd_rsi, pullback_continuation, scored_entry_exit, regime_filter
plotbooleantrueWhether to plot long/short combo signals
plotNamestring-Plot series name
plotPaddingnumber3Price padding used to place long/short markers around close
plotWidthnumber2Plot line width
fastLennumber9Fast EMA length
slowLennumber21Slow EMA length
rsiLennumber14RSI length
rsiBullishThresholdnumber50RSI bullish confirmation threshold
rsiBearishThresholdnumber50RSI bearish confirmation threshold
macdFastLennumber12MACD fast EMA length
macdSlowLennumber26MACD slow EMA length
macdSignalLennumber9MACD signal EMA length
donchianLennumber20Donchian / recent structure window
structureLennumber10Recent swing high/low structure window
vwapLennumber20Rolling VWAP length
bollingerLennumber20Bollinger Bands length
bollingerStdDevnumber2Bollinger Bands standard deviation multiplier
superTrendAtrLennumber10SuperTrend ATR length
superTrendMultipliernumber3SuperTrend ATR multiplier
atrLennumber14ATR trail length
atrMultipliernumber2.5ATR trail multiplier
atrPercentileLennumber20ATR percentile window
highVolatilityThresholdnumber60ATR percentile threshold for high volatility regime
lowVolatilityThresholdnumber40ATR percentile threshold for low volatility regime
adxLennumber14ADX / DMI length
adxThresholdnumber20ADX threshold for DMI trend combos
strongAdxThresholdnumber25ADX threshold for strong trend regime
weakAdxThresholdnumber20ADX threshold for weak trend regime
volumePercentileLennumber20Volume percentile window
volumePercentileThresholdnumber60Volume percentile confirmation threshold
volumeLowPercentileThresholdnumber40Volume percentile threshold for low volume regime
entryScoreThresholdnumber4Minimum scored-entry points required for scored_entry_exit
exitScoreThresholdnumber3Minimum scored-exit points reported by scored_entry_exit
chopCrossLennumber10EMA cross count window for chop regime
chopCrossThresholdnumber3Minimum EMA crosses inside chopCrossLen for chop regime

Output parameters

Data attributeValues
signal1 for long, -1 for short, 0 when no side is active
long1 when the combo has an active long signal
short1 when the combo has an active short signal

SQL example

IF sessionCombo id="bb" combo="bollinger_mean_reversion" bollingerLen=20 bollingerStdDev=2 plot=true plotWidth=3
        IF sessionCombo id="trend" combo="ema_macd_rsi" fastLen=9 slowLen=21 rsiLen=14 plot=true plotWidth=3
        IF sessionCombo id="macd" combo="macd_ema" macdFastLen=12 macdSlowLen=26 macdSignalLen=9 plot=true

On this page