Please check out the updated AllPivots indicators for both platforms that work in EAs properly.
Code:
input string pivotsInputs = "===== AllPivots settings: =====";
input ENUM_TIMEFRAME pivotsTimeFrame = D1; // TimeFrame
input int pivotsLength = 1; // Length in periods(eg. 2= 2 days)
input ENUM_PIVOTS pivotsMode = floor_piv; // Pivot Mode
input string pivotsValues = "0;1;2;3;4"; // Pivot values(ratios)
input ENUM_BASEPRICE pivotsBasePrice = prevtypical; // Base Price
input int pivotsBaseHourShift = 0; // Base Hour Shift(eg.0-start of the day)
input bool pivotsShowMedians = false; // Show Medians
input ENUM_RANGE pivotsRangeMode = hilo_r; // Range Mode
input string pivotsAvgPeriod = "1"; // Avg Periods in bars
input int pivotsSessionStartHour = 0; // Session Start Hour(eg. 9 for DAX,0-for Forex)
input int pivotsSessionEndHour = 0; // Session End Hour(eg. 22 for DAX,0-for Forex)
input int pivotsNumberOfDigits = 4; // Number of digits after decimal point
input bool pivotsShowPivots = true; // Show Pivots
input int pivotsShift = 1; // AllPivots Shift
input int pivotsEntryMode = 1; // Entry Mode: 0-off,1-sell above r1/buy below s1,2-r2/s2,3-r3/s3
string UniqueName = "Pivots"; // Unique Name
bool ShowOnWeekends = false; // Show Piovts On Weekends
bool ShowGradientLevelColor = true; // Show Gradient Level Colors
color MainPivotColor = clrSilver; // Main Pivot Color
int MainPivotWidth = 1; // Main Pivot Width
color UpperLevelColor = clrTomato; // Upper Level Color
color LowerLevelColor = clrLimeGreen; // Lower Level Color
ENUM_LINE_STYLE LevelStyle = STYLE_SOLID; // Level Style
int LevelWidth = 2; // Level Width
bool ShowMedians = false; // Show Medians
color MedianColor = clrSilver; // Median Color
bool ShowGradientMedianColor = true; // Show Gradient Median Colors
ENUM_LINE_STYLE MedianStyle = STYLE_DOT; // Median Style
int MedianWidth = 0; // Median Width
bool ShowPivotValues = false; // Show Pivot Values
string FontName = "Arial"; // Font Name
int FontSize = 7; // Font Size
color TextColor = clrWhite; // Text Color
bool ShowGradientTextColor = false; // Show Gradient Text Colors
ENUM_ANCHOR_POINT DescriptionAnchor = 0; // Level's Description Anchor
bool UseStaticLocation = true; // Use Static Location for the Level's Description
int DescriptionDistance = 0; // Distance from the Anchor(in bars) for Level's Description
bool ShowPeriodSeparators = true; // Show Period Separators
color PeriodSeparatorsColor = clrGray; // Period Separators Color
bool ShowBackground = false; // Show Background
color BackgroundColor = clrBlack; // Background Color
bool ShowGradientBgColor = true; // Show Gradient Background Colors
bool ShowComment = false; // Show Comments
r1[0] = iCustom(_Symbol,0,"AllPivots_v5.9 600+","",pivotsTimeFrame,UniqueName,pivotsLength,pivotsMode,pivotsValues,pivotsBasePrice,pivotsBaseHourShift,pivotsRangeMode,pivotsAvgPeriod,pivotsSessionStartHour,pivotsSessionEndHour,pivotsNumberOfDigits,
"",pivotsShowPivots,ShowOnWeekends,ShowGradientLevelColor,MainPivotColor,MainPivotWidth,UpperLevelColor,LowerLevelColor,LevelStyle,LevelWidth,pivotsShowMedians,MedianColor,ShowGradientMedianColor,
MedianStyle,MedianWidth,ShowPivotValues,FontName,FontSize,TextColor,ShowGradientTextColor,DescriptionAnchor,UseStaticLocation,DescriptionDistance,ShowPeriodSeparators,
PeriodSeparatorsColor,ShowBackground,BackgroundColor,ShowGradientBgColor,ShowComment,1,bar);
s1[0] = iCustom(_Symbol,0,"AllPivots_v5.9 600+","",pivotsTimeFrame,UniqueName,pivotsLength,pivotsMode,pivotsValues,pivotsBasePrice,pivotsBaseHourShift,pivotsRangeMode,pivotsAvgPeriod,pivotsSessionStartHour,pivotsSessionEndHour,pivotsNumberOfDigits,
"",pivotsShowPivots,ShowOnWeekends,ShowGradientLevelColor,MainPivotColor,MainPivotWidth,UpperLevelColor,LowerLevelColor,LevelStyle,LevelWidth,pivotsShowMedians,MedianColor,ShowGradientMedianColor,
MedianStyle,MedianWidth,ShowPivotValues,FontName,FontSize,TextColor,ShowGradientTextColor,DescriptionAnchor,UseStaticLocation,DescriptionDistance,ShowPeriodSeparators,
PeriodSeparatorsColor,ShowBackground,BackgroundColor,ShowGradientBgColor,ShowComment,7,bar);
Bookmarks