Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2010.07.20 09:14
Indicators

Color Parabolic 2 - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Published by:
Вадим
Views:
3199
Rating:
votes: 17

Added colors to Parabolic SAR. The color depends on the acceleration factor.

All calculations performed inside the CParabolic class.

The functions:

  • Init(double SARStep, double SARMaximum,const double &high[],const double &low[],int totl) - initialization.
  • GetColor() - gets the color.
  • Calc(const double &high[],const double &low[],int i) - calculates the value of Parabolic at the specified bar.

The code will be useful for all who start to learn classes.

The colors are listed in the line:

#property indicator_color1  Blue,Purple,Indigo,Sienna,SteelBlue,Aqua,SpringGreen,Gold,Yellow,Linen,MintCream

This version uses 10 first colors, but it's better to specify more colors in the list.

Color Parabolic indicator

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/96

The CGV class for working with global variables The CGV class for working with global variables

The CGV class simplifies the work with global variables of MetaTrader 5 client terminal.

iStochasticOfOsc iStochasticOfOsc

The Stochastic of all oscillator-like indicators, included in MetaTrader 5 client terminal.

TimerClosingPeriod v.2 TimerClosingPeriod v.2

The updated version of TimeClosingPeriod indicator, it plots the time, remained to the current bar complete. At the last second it plays the sound file, specified in the input parameters.

Reversal Bar Reversal Bar

The indicator helps to find the reversal bar of the trend.