I can imagine that here in the forum are a lot of threads like these. But my problem this time isn't that I don't know how the iCustom Methode works rather that it doesn't work...The parameters for the iCustom Methode are:
double iCustom(symbol, timeframe, name, [CustomIndicatorParameters1, CustomIndicatorParameters2 ...], mode, shift);
My Code looks so:
superTrend = iCustom(NULL, 0, "SuperTrend", 10, 3.0, 0, 0);
Comment("EMA25(e): ",EMA25," - EMA50(e): ",EMA50," - SuperTrend: ",superTrend);
I don't know why but I am getting wrong results... For example the SuperTrend is in the picture 1.12259 but the EA says "SuperTrend: 2147483647.0"Where is the problem and how can I fix that?
The input parameters for the SuperTrend Indicator are Nbr_Periods and Multiplier. So just 2 parameters who I gave the value 10 and 3.0 (standart values) in my iCustom Methode. But it doesn't work...
You can find the code for the SuperTrend Indicator in the attachment!
Greetings and thank you!
I found out that the EA returns the right value for the SuperTrend if the SuperTrend is below the market price... Why is that working?So it's only wrong if the SuperTrend is above the market price!
superTrend_lower = iCustom(NULL, 0, "SuperTrend", 10, 3.0, 0, 0);
superTrend_upper = iCustom(NULL, 0, "SuperTrend", 10, 3.0, 1, 0);
2147483647.0 is EMPTY_VALUE, which means that the line is not displayed
Print("SuperTrend is below price");
Print("SuperTrend is above price");
I have again a problem with my iCustom, I think it is again a Buffer error... How can I get the 6 values for the daily pivot points?You can find the code for the DailyPivotPoints Indicator in the attachment!
The indicator "dailypivotpoints" that you have provided, displays the pivot points using Graphical Chart Objects and not standard indicator buffers, therefore you cannot use iCustom() to get the values.
You will have to either:
The lines are drawn with objects, not buffers, so you cannot access their values with iCustom.
You can get their values with ObjectGet() or ObjectGetDouble() as long as the indicator is attached to the chart.
To add comments, please log in or register