# AIMS Wave Overlay Settings & Parameter Reference

This reference documents the input parameters, custom color options, and candle dimensions in **AIMS Wave Overlay** for MetaTrader 4.

***

## Input Parameters Reference[​](#input-parameters-reference "Direct link to Input Parameters Reference")

| Parameter           | Type     | Default          | Description                                                   |
| ------------------- | -------- | ---------------- | ------------------------------------------------------------- |
| `InpSerialKey`      | `string` | `""`             | DLMS licensing serial key                                     |
| `InpColorLime`      | `color`  | `C'34,177,76'`   | Bullish impulse candle color (`AO >= 0` and rising)           |
| `InpColorDarkGreen` | `color`  | `clrForestGreen` | Bullish corrective candle color (`AO >= 0` and falling)       |
| `InpColorRed`       | `color`  | `C'237,28,36'`   | Bearish impulse candle color (`AO < 0` and falling)           |
| `InpColorMaroon`    | `color`  | `clrMaroon`      | Bearish corrective candle color (`AO < 0` and rising)         |
| `InpBodyWidth`      | `int`    | `3`              | Visual width of candle bodies (1 to 5)                        |
| `InpWickWidth`      | `int`    | `1`              | Visual width of candle wicks (1 to 3)                         |
| `InpMaxBars`        | `int`    | `1000`           | Maximum history bars to render overlay objects (0 = all bars) |

***

## MQL4 EA Integration[​](#mql4-ea-integration "Direct link to MQL4 EA Integration")

```
// Read AIMS Wave Color State on closed bar 1 (Buffer 0)

// 0.0 = Lime Green (Bull Impulse)

// 1.0 = Dark Green (Bull Pullback)

// 2.0 = Bright Red (Bear Impulse)

// 3.0 = Maroon (Bear Pullback)

double waveColor = iCustom(Symbol(), Period(), "AIMSWave-Overlay", 0, 1);



if (waveColor == 0.0)

{

   Print("Bullish Impulse acceleration active on bar 1");

}
```
