Mas cross final
- Indicators
-
Chinthala Baji
I am a passionate High-Frequency Trading (HFT) Developer specializing in building advanced algorithmic trading systems for financial markets. My focus is on creating fast, efficient, and highly accurate trading solutions that leverage automation, data analysis, and precision execution. - Version: 3.0
- Activations: 5
Here is the complete full description of the indicator:
MACross_Final.mq5
What This Indicator Does
This is a Moving Average Crossover Signal Indicator for MetaTrader 5. It detects when a Fast MA crosses over or under a Slow MA and displays a BUY or SELL signal with exact SL, TP1, TP2, TP3 price levels as text labels on the chart. No lines are drawn. No moving average lines are visible. Non-repainting.
How It Works
BUY Signal
- Triggers when Fast MA crosses above Slow MA on a closed bar
- Blue ▲ arrow appears below the signal candle
- Labels appear at exact price levels
TP3: 1.17xxx ← blue text (highest target) TP2: 1.17xxx ← blue text TP1: 1.17xxx ← blue text (nearest target) ◄ BUY ▲ ← blue arrow below candle SL: 1.17xxx ← red text below entry
SELL Signal
- Triggers when Fast MA crosses below Slow MA on a closed bar
- Orange ▼ arrow appears above the signal candle
- Labels appear at exact price levels
SL: 1.17xxx ← red text above entry ◄ SELL ▼ ← orange arrow above candle TP1: 1.17xxx ← orange text (nearest target) TP2: 1.17xxx ← orange text TP3: 1.17xxx ← orange text (lowest target)
SL & TP Calculation
All levels are calculated using ATR (Average True Range) from the entry close price:
BUY
Entry = Close price of signal candle SL = Entry − (SL_Multiplier × ATR) TP1 = Entry + (TP1_Multiplier × ATR) TP2 = Entry + (TP2_Multiplier × ATR) TP3 = Entry + (TP3_Multiplier × ATR)
SELL
Entry = Close price of signal candle SL = Entry + (SL_Multiplier × ATR) TP1 = Entry − (TP1_Multiplier × ATR) TP2 = Entry − (TP2_Multiplier × ATR) TP3 = Entry − (TP3_Multiplier × ATR)
All Input Settings
Moving Average
| Input | Default | Description |
|---|---|---|
| FastMA_Period | 9 | Fast MA period |
| SlowMA_Period | 21 | Slow MA period |
| MA_Method | EMA | EMA / SMA / SMMA / LWMA |
| MA_Price | Close | Price type used for MA |
SL / TP Multipliers
| Input | Default | Meaning |
|---|---|---|
| ATR_Period | 14 | ATR period for distance calculation |
| SL_Multiplier | 1.5 | SL = 1.5 × ATR from entry |
| TP1_Multiplier | 1.0 | TP1 = 1.0 × ATR from entry |
| TP2_Multiplier | 2.0 | TP2 = 2.0 × ATR from entry |
| TP3_Multiplier | 3.5 | TP3 = 3.5 × ATR from entry |
Label Appearance
| Input | Default | Description |
|---|---|---|
| LabelFontSize | 11 | Size of all text labels |
| LabelFont | Arial Bold | Font style (bold = thick text) |
| BuyColor | DodgerBlue | Color of BUY arrow and TP labels |
| SellColor | OrangeRed | Color of SELL arrow and TP labels |
| SLColor | Red | Color of SL label |
Non-Repaint Logic
- Signals are only confirmed on fully closed bars
- Bar index 0 (the live forming candle) is never written to
- Once an arrow appears it will never disappear or move

User didn't leave any comment to the rating