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
| Parameter | Type | Default | Description |
|---|---|---|---|
InpSerialKey | string | "" | Licensing serial key for DLMS activation |
InpShowCandles | bool | true | Enable or disable 4-colour candlestick overlay |
InpColorLime | color | C'34,177,76' | Bullish impulse candle color (AO >= 0 and rising) |
InpColorDarkGreen | color | clrForestGreen | Bullish retracement candle color (AO >= 0 and falling) |
InpColorRed | color | C'237,28,36' | Bearish impulse candle color (AO < 0 and falling) |
InpColorMaroon | color | clrMaroon | Bearish retracement candle color (AO < 0 and rising) |
InpBodyWidth | int | 3 | Candlestick body visual width (1 to 5) |
InpWickWidth | int | 1 | Candlestick wick visual width (1 to 3) |
InpMaxBars | int | 1000 | Maximum history bars to render overlay objects |
InpFilterGatorOpen | bool | true | Require Alligator mouth to be fully opened in signal direction |
InpFilterPurple | bool | true | Enforce price alignment relative to Purple Magic Line (SMMA 34) |
InpShowSignals | bool | true | Display directional signal arrows on chart |
InpBuySignalColor | color | clrDodgerBlue | Color for bullish arrows and entry bracket lines |
InpSellSignalColor | color | C'237,28,36' | Color for bearish arrows and entry bracket lines |
InpArrowWidth | int | 1 | Visual size of signal arrows |
InpBuyArrowCode | int | 241 | Wingdings character code for Buy arrow (241 = Small Up ▲) |
InpSellArrowCode | int | 242 | Wingdings character code for Sell arrow (242 = Small Down ▼) |
InpShowPriceLevels | bool | true | Draw forward-projected entry and stop loss price lines |
InpSLMethod | enum | CANDLE_EXTREME | Stop Loss method: 0 = Candle Extreme, 1 = Gator Jaws, 2 = Fractal |
InpBufferPips | double | 1.0 | Entry and SL safety buffer in pips |
InpBracketBars | int | 6 | Number of future bars to extend active entry/SL level lines |
InpAlertOnSignal | bool | true | Alert when signal forms on closed bar |
Stop Loss Modes Comparison
| Mode Value | Enumeration | Methodology | Best Suited For |
|---|---|---|---|
| 0 | MOM_SL_CANDLE_EXTREME | Tight stop placed 1 pip past the trigger candle's opposite wick | Fast-moving breakout scalping (M5 / M15) |
| 1 | MOM_SL_GATOR_JAWS | Dynamic stop placed at the Alligator Blue line (Jaw: SMMA 13, shift 8) | Momentum swing trades with room for healthy retracements |
| 2 | MOM_SL_FRACTAL | Structural stop pegged to the most recent swing/fractal low or high | Classic 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);
}