Bulls and Bears Indicator For MT5
Table Of Contents:
- Bulls and Bears Indicator For MT5
- Installing the Bulls and Bears Indicator For MT5
- Parameters of the Bulls and Bears Indicator For MT5
- Buffers of the Bulls and Bears Indicator For MT5
- Main Parts Of The Code
The Bulls and Bears Indicator For MT5 shows the power of the bulls and sellers in the market. When you spot a green color cloud above the reference line, you should be looking for the bullish price action confirmation signals. And if you spot orange color cloud below the reference line, you should be looking to short the pair. Once you get skilled at trading, you can easily make a big profit without losing too much money. Think about the professional approach and use this tool only to assess the quality of the trade setups. Once you become good at analyzing the market variables, you won’t have trouble in dealing with the complex market data.
Installing the Bulls and Bears Indicator For MT5
After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file Bulls and bears.mq5 into the folder MQL5\Indicators of your MT5 installation. After that please restart MT5 and then you will be able to see the indicator in the list of indicators.
Parameters of the Bulls and Bears Indicator For MT5
The Bulls and Bears Indicator For MT5 has 1 parameters to configure.
input int inpBullBearPeriod=14; // Bulls and bears period
Buffers of the Bulls and Bears Indicator For MT5
The Bulls and Bears Indicator For MT5 provides 6 buffers.
SetIndexBuffer(0,bullsh,INDICATOR_DATA); SetIndexBuffer(1,bullsz,INDICATOR_DATA); SetIndexBuffer(2,bearsh,INDICATOR_DATA); SetIndexBuffer(3,bearsz,INDICATOR_DATA); SetIndexBuffer(4,bullsl,INDICATOR_DATA); SetIndexBuffer(5,bearsl,INDICATOR_DATA);
Main Parts Of The Code
int OnCalculate(const int rates_total,const int prev_calculated,const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { if(Bars(_Symbol,_Period) lt rates_total) return(prev_calculated); if(BarsCalculated(_bullsHandle) lt rates_total) return(prev_calculated); if(BarsCalculated(_bullsHandle) lt rates_total) return(prev_calculated); double _bullVal[1],_bearVal[1]; int i=(int)MathMax(prev_calculated-1,1); for(; i lt rates_total && !_StopFlag; i++) { int _bullCopied=CopyBuffer(_bullsHandle,0,time[i],1,_bullVal); int _bearCopied=CopyBuffer(_bearsHandle,0,time[i],1,_bearVal); bullsl[i] = (_bullCopied==1) ? _bullVal[0] : EMPTY_VALUE; bearsl[i] = (_bearCopied==1) ? _bearVal[0] : EMPTY_VALUE; bullsh[i] = MathMax(bullsl[i],0); bullsz[i] = 0; bearsh[i] = MathMin(bearsl[i],0); bearsz[i] = 0; } return (i); } //+------------------------------------------------------------------+