Hi,
In this version of the AllPivots indicator I tried to implement almost all known methods for the Pivot Points calculation:
- Standard Floor Pivots
- Camarilla Pivots
- Demark Pivots
- Fibo Pivots(relative and absolute in pips)
- Avg Range Levels
and plus many other combinations of them.
Attachment 1447Code://---- input parameters extern string set1 = "--- Main settings ---"; extern string TimeFrame = "D1"; //TimeFrame(eg. D1,W1) extern string UniqueName = "AllPivots"; //Unique Name extern int Length = 5; //Length in periods(eg. 2= 2 days) extern int PivotMode = 0; //Pivot Mode: 0-Standard // 1-Camarilla // 2-Demark // 3-Fibo relative and Avg Range Levels // 4-Fibo absolute(in pips) extern string PivotValues = "0.382;0.618;1;"; //Pivot values(ratios) extern int RangeMode = 0; //Range Mode: 0-Hi/Lo Range; // 1-UpRange=High-BasePrice, DnRange=BasePrice-Low // 2-Range=Close-Close[1] extern int BaseHourShift = 0; //Base Hour Shift(eg.0-start of the day) extern int BasePrice = 5; //Base Price (0...6) (1 for today's Open) extern int AvgPeriod = 1; //Avg Period extern string set2 = "--- Visual settings ---"; extern int GradientColorMode = 1; //0-off,1-on extern color MainPivotColor = Yellow; extern int MainPivotWidth = 2; extern color UpperLevelColor = Blue; extern color LowerLevelColor = Red; extern int LineStyle = STYLE_SOLID; extern int LineWidth = 1; extern bool ShowPivotValues = false; extern string FontName = "Arial"; extern int FontSize = 8; extern int CommentMode = 0; //0-off,1-on
Regards,
Igor
Bookmarks