Watch how to download trading robots for free
Find us on Facebook!
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

Color Parabolic 2 - indicator for MetaTrader 5

Published by:
Вадим
Views:
8477
Rating:
(24)
Published:
2010.07.20 09:14
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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 Ltd.
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.