Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

MA Candles Two Colors - indicator for MetaTrader 4

Views:
58287
Rating:
(21)
Published:
2013.09.26 05:55
Updated:
2015.09.07 10:55
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

MA Candles Two Colors 2.0: Also available for MetaTrader 5

This indicator draws different colored candles above and below a Moving Average (MA) line.

Supported MA methods:

  1. Simple
  2. Exponential
  3. Smoothed
  4. Weighted
  5. Triangular *.

The indicator includes all standard parameters of MA: Period, Shift, Method and Price.

* Triangular MA indicator is included — see attached download files.

The user is required to ensure that all Inputs Variables and Value parameters (MA Period, Shift, Method and Price) on both the present Indicator and the user provided Moving Average match each other exactly.

This indicator has been updated to automatically change the chart to a Line Chart and set the Line Chart to color None before drawing the MA Candles. Steps 1-7 are no longer necessary.
  1. Open a new chart.
  2. Change the chart price graphic to Line Chart - Press (Alt + 3) or locate 'Charts' on top menu and select 'Line Chart'. Make sure that 'Bar Chart' or 'Candlesticks' is not accidentally selected.
  3. Open the Chart Properties window - press (F8) or right click anywhere on the chart and select 'Properties'.
  4. Select the Colors tab.
  5. Select 'Line Chart:', now select the '▼' and change color to 'None'. The chart should now have no graphical price displayed and is referred to as the blank chart.
  6. A template of the blank chart can be made for further use with other currency pairs or instruments.
  7. Attach Indicator Color Candles cross MA to the blank chart.

The default parameters for MA1 are: Period = 1, Shift = 0, Method = 0 (SMA), Price = 0 (Close). This is the equivalent of having the color candles change color on price close above or below MA2.

The default method for MA2 is EMA.

Note: MAs to be supplied by user and not part of Indicator.

Candle Accuracy: Although the standard chart price graphic is hidden it is not disabled and Open, High, Low and Close prices are available in MetaTrader 4 Data Window (press Ctrl+D or View → Data Window). Accuracy of the Indicators Open, High, Low and Close can be checked against Open, High, Low and Close in MetaTrader 4 Data Window. When cross-referencing the cursor point must be on the relevant colored candle:

Interpretation of the Data Windows:

  1. The hidden candle Open: 1325.6
  2. The hidden candle High: 1326.6
  3. The hidden candle Low: 1321.5
  4. The hidden candle Close: 1323.1

The indicator candle H, L, O and C are listed in Columns R up, R dn, Bu and B dn (Red up candle, Red down, Blue up candle, Blue down candle).

The hidden candle open is greater than the close so the candle is a down candle. The indicator Red down candle in column 2 corresponds to the hidden down candle.

  1. R dn L: 1321.5
  2. B dn H: 1326.6
  3. R dn C: 1323.1
  4. R dn O: 1325.6

All Inputs parameters and options can be changed and will save automatically. If after changing Inputs or Color parameters a Reset is used the Color Candles will display as Bars. To revert to Color Candles switch to a different timeframe and then back.

Input and Parameters:
  • Candle _MA_Period - 34;
  • Candle_MA_ Shift - 0;
  • Candle_MA_Type - 1;
  • Candle_MA_Price - 0;
  • Candle_Shadow_Width - 1;
  • Candle_Body_Width - 4;
  • Type_Key - 0: SMA, 1: EMA, 2: SMMA, 3: LWMA;
  • Price_Key - 0: Close, 1: Open; 2: High;
  • Price_Key_cont - 3: Low, 4: Median;
Kijun Sen Candles Two Colors Kijun Sen Candles Two Colors

This Indicator draws different color candles above and below a Kijun Sen line.

Color Fill - Tenkan + Kijun Color Fill - Tenkan + Kijun

Draws Tenkan and Kijun with Color Fill between 1. Price and Tenkan, 2. Price and Kijun, 3. Tenkan and Kijun and 4. No Fill.

NewsTradingEA NewsTradingEA

EA for Trading on News event, will set BUY and SELL Stop (pending order) then will delete one pending order after open BUY/SELL occur (OCO) on specifed date and time.

Open chart Open chart

With 3 settable parameters (currency pair, timeframe, and template) opens a new chart on your screen at the initalization period of the script.