WyattsPivots Indicator For MT5
The WyattsPivots Indicator For MT5 overlays support levels and resistance levels on a price chart. These levels are based on Pivot Points. Intraday traders can use these horizontal levels to not just identify trade entry points, but also zero in on Stop Loss and Take Profit areas.
The WyattsPivots Indicator For MT5 can be applied on charts of stocks, index futures, currency pairs and commodities.
Installing the WyattsPivots 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 WyattsPivots.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 WyattsPivots Indicator For MT5
The WyattsPivots Indicator For MT5 has 40 parameters to configure.
input int CountPeriods=20;
input ENUM_TIMEFRAMES TimePeriod=PERIOD_D1;
input bool PlotPivots=true;
input bool PlotFuturePivots=true;
input bool PlotFuturePivotsExtendLeft=true;
input bool PlotPivotLabels=false;
input bool PlotPivotPrices=false;
input ENUM_LINE_STYLE StylePivots=STYLE_SOLID;
input int WidthPivots=2;
input color ColorRes=clrRed;
input color ColorPP=clrGray;
input color ColorSup=clrGreen;
input bool PlotMidpoints=false;
input ENUM_LINE_STYLE StyleMidpoints=STYLE_DASH;
input int WidthMidpoints=1;
input color ColorM35=clrRed;
input color ColorM02=clrGreen;
input bool PlotZones=true;
input color ColorBuyZone=clrLightGreen;
input color ColorSellZone=clrPink;
input bool PlotBorders=true;
input ENUM_LINE_STYLE StyleBorder=STYLE_SOLID;
input int WidthBorder=2;
input color ColorBorder=clrBlack;
input bool PlotFibots=true;
input bool PlotFibotLabels=false;
input bool PlotFibotPrices=false;
input ENUM_LINE_STYLE StyleFibots1=STYLE_DOT;
input ENUM_LINE_STYLE StyleFibots2=STYLE_SOLID;
input int WidthFibots1=1;
input int WidthFibots2=1;
input color ColorFibots=clrDodgerBlue;
input bool PlotYesterdayOHLC=false;
input bool PlotOHLCPrices=false;
input ENUM_LINE_STYLE StyleOHLC=STYLE_DOT;
input int WidthOHLC=1;
input color ColorO=clrGold;
input color ColorH=clrRed;
input color ColorL=clrGreen;
input color ColorC=clrMagenta;
Buffers of the WyattsPivots Indicator For MT5
The WyattsPivots Indicator For MT5 provides 0 buffers.
Main Parts Of The Code
int OnCalculate(
const int rates_total, // : gt ;8G5AB2 gt 8AB gt @88 2 10@0E =0 B5:CI5 lt B8:5
const int prev_calculated,// : gt ;8G5AB2 gt 8AB gt @88 2 10@0E =0 ?@54K4CI5 lt B8:5
const datetime &Time[],
const double &Open[],
const double& High[], // F5= gt 2 gt 9 lt 0AA82 lt 0:A8 lt C lt gt 2 F5=K 4;O @0AGQB0 8=48:0B gt @0
const double& Low[], // F5= gt 2 gt 9 lt 0AA82 lt 8=8 lt C lt gt 2 F5=K 4;O @0AGQB0 8=48:0B gt @0
const double &Close[],
const long &Tick_Volume[],
const long &Volume[],
const int &Spread[]
)
{
//---- 8=45:A0F8O M;5 lt 5=B gt 2 2 lt 0AA820E :0: 2 B09 lt A5@8OE
ArraySetAsSeries(Close,true);
//---- gt 1JO2;5=8O ; gt :0;L=KE ?5@5 lt 5==KE
int limit;
//---- @0AGQBK =5 gt 1E gt 48 lt gt 3 gt : gt ;8G5AB20 : gt ?8@C5 lt KE 40==KE
if(prev_calculated gt rates_total || prev_calculated lt =0)// ?@ gt 25@:0 =0 ?5@2K9 AB0@B @0AGQB0 8=48:0B gt @0
{
limit=rates_total-1;
}
else limit=rates_total-prev_calculated; // AB0@B gt 2K9 = gt lt 5@ 4;O @0AGQB0 = gt 2KE 10@ gt 2
if(MQLInfoInteger(MQL_TESTER) || MQLInfoInteger(MQL_VISUAL_MODE) || MQLInfoInteger(MQL_DEBUG)) if(!limit) return(prev_calculated);
for(shift=nCountPeriods-1;shift gt =0;shift--)
{
timestart = iTime(NULL,TimePeriod,shift);
timeend = timestart+nTimePeriod;
LevelsDraw(shift+1,timestart,timeend,period+string(shift),false,Close);
}
if(PlotFuturePivots)
{
if(PlotFuturePivotsExtendLeft)
{
timestart=iTime(NULL,TimePeriod,1)+nTimePeriod;
timeend=iTime(NULL,TimePeriod,1)+nTimePeriod*2;
}
else
{
timestart=iTime(NULL,TimePeriod,0)+nTimePeriod;
timeend=iTime(NULL,TimePeriod,0)+nTimePeriod*2;
}
LevelsDraw(0,timestart,timeend,"F"+period,true,Close);
}
//----
ChartRedraw(0);
return(prev_calculated);
}
//+------------------------------------------------------------------+