Skip to main content
|View as Markdown||

AIMS Momentum Settings & Parameter Reference

This reference covers every input parameter, color setting, bracket projection option, and alert toggle in AIMS Momentum Indicator for MetaTrader 4.


Input Parameters Reference​

ParameterTypeDefaultDescription
InpSerialKeystring""Licensing serial key for DLMS activation
InpShowCandlesbooltrueEnable or disable 4-colour candlestick overlay
InpColorLimecolorC'34,177,76'Bullish impulse candle color (AO >= 0 and rising)
InpColorDarkGreencolorclrForestGreenBullish retracement candle color (AO >= 0 and falling)
InpColorRedcolorC'237,28,36'Bearish impulse candle color (AO < 0 and falling)
InpColorMarooncolorclrMaroonBearish retracement candle color (AO < 0 and rising)
InpBodyWidthint3Candlestick body visual width (1 to 5)
InpWickWidthint1Candlestick wick visual width (1 to 3)
InpMaxBarsint1000Maximum history bars to render overlay objects
InpFilterGatorOpenbooltrueRequire Alligator mouth to be fully opened in signal direction
InpFilterPurplebooltrueEnforce price alignment relative to Purple Magic Line (SMMA 34)
InpShowSignalsbooltrueDisplay directional signal arrows on chart
InpBuySignalColorcolorclrDodgerBlueColor for bullish arrows and entry bracket lines
InpSellSignalColorcolorC'237,28,36'Color for bearish arrows and entry bracket lines
InpArrowWidthint1Visual size of signal arrows
InpBuyArrowCodeint241Wingdings character code for Buy arrow (241 = Small Up ▲)
InpSellArrowCodeint242Wingdings character code for Sell arrow (242 = Small Down ▼)
InpShowPriceLevelsbooltrueDraw forward-projected entry and stop loss price lines
InpSLMethodenumCANDLE_EXTREMEStop Loss method: 0 = Candle Extreme, 1 = Gator Jaws, 2 = Fractal
InpBufferPipsdouble1.0Entry and SL safety buffer in pips
InpBracketBarsint6Number of future bars to extend active entry/SL level lines
InpAlertOnSignalbooltrueAlert when signal forms on closed bar

Stop Loss Modes Comparison​

Mode ValueEnumerationMethodologyBest Suited For
0MOM_SL_CANDLE_EXTREMETight stop placed 1 pip past the trigger candle's opposite wickFast-moving breakout scalping (M5 / M15)
1MOM_SL_GATOR_JAWSDynamic stop placed at the Alligator Blue line (Jaw: SMMA 13, shift 8)Momentum swing trades with room for healthy retracements
2MOM_SL_FRACTALStructural stop pegged to the most recent swing/fractal low or highClassic Dow Theory swing trading

Expert Advisor Programmatic Integration​

Custom EAs can read AIMS Momentum signals using standard iCustom() calls:

// Buffer 0 = Buy Arrow, Buffer 1 = Sell Arrow
double buySig = iCustom(Symbol(), Period(), "AIMS Momentum Indicator", 0, 1);
double sellSig = iCustom(Symbol(), Period(), "AIMS Momentum Indicator", 1, 1);

if (buySig > 0.0)
{
Print("Valid Buy Momentum signal at price: ", buySig);
}
else if (sellSig > 0.0)
{
Print("Valid Sell Momentum signal at price: ", sellSig);
}