BalanceOfPower_Histogram_Alert – indicator for MetaTrader 5
True writer:
RoboFx
The Difference of Energy (BOP) indication as a colour pie chart of stamina and also instructions of the existing progression, which includes alarms, delivering e-mails and also push-notifications to mobile phones. The pie chart is actually tinted depending on to the worths input guidelines for overbought and also oversold degrees and also the motion instructions of the pie chart.
The adhering to adjustments have actually been actually produced to the indication code so as to carry out the alarms, e-mail notifications and also push-notifications:
- Launched brand new input guidelines
//-- Input variables for alarms input uint NumberofBar = 1; // Prevent amount for the sign input bool SoundON = real; // Enable alarms input uint NumberofAlerts = 2; // Variety of alarms input bool EMailON = inaccurate; // Enable posting the sign input bool PushON = inaccurate; // Enable delivering the sign to mobile phones
- Incorporated 3 brand new features throughout of the indication code: BuySignal(), SellSignal() and also GetStringTimeframe()
//+ ------------------------------------------------------------------+
//|Buy sign functionality |.
//+ ------------------------------------------------------------------+
gap BuySignal( strand SignalSirname,// text message of the indication label for e-mail and also press notifications
dual && ColorArray[],(***************** )// different colors mark stream
. int(****************** )ColorIndex,// different colors mark in the different colors mark stream to create a sign
const int Rates_total, // the existing lot of clubs
const int Prev_calculated, // the lot of clubs on the previous tick
const dual && Shut( *),(***************** )// near cost(******************
). const(****************** ) int(****************** &) & Escalate[])( *****************)// escalate
{
//--
stationary uint contrarily = 0;.
if( Rates_total!= Prev_calculated) contrarily = 0;.bool BuySignal = inaccurate;.
bool SeriesTest = ArrayGetAsSeries( ColorArray);.
int mark, index1;.
if( SeriesTest).
{
mark = int( NumberofBar);.
index1= mark+ 1;.
}
else
{
mark= Rates_total- int( NumberofBar)- 1;.
index1= mark- 1;.
}
if( ColorArray[index1]!= ColorIndex && & & ColorArray[index]== ColorIndex) BuySignal = real ;. if(****************** )( BuySignal & & counter