
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, I'm trying to get values from the indicator that I have attached calculates pivot points with Fibonacci formula.The indicator receives in input following parameters:
enum enTimeFrames
{
tf_cu = PERIOD_CURRENT, // Current time frame
tf_m1 = PERIOD_M1, // 1 minute
tf_m2 = PERIOD_M2, // 2 minutes
tf_m3 = PERIOD_M3, // 3 minutes
tf_m4 = PERIOD_M4, // 4 minutes
tf_m5 = PERIOD_M5, // 5 minutes
tf_m6 = PERIOD_M6, // 6 minutes
tf_m10 = PERIOD_M10, // 10 minutes
tf_m12 = PERIOD_M12, // 12 minutes
tf_m15 = PERIOD_M15, // 15 minutes
tf_m20 = PERIOD_M20, // 20 minutes
tf_m30 = PERIOD_M30, // 30 minutes
tf_h1 = PERIOD_H1, // 1 hour
tf_h2 = PERIOD_H2, // 2 hours
tf_h3 = PERIOD_H3, // 3 hours
tf_h4 = PERIOD_H4, // 4 hours
tf_h6 = PERIOD_H6, // 6 hours
tf_h8 = PERIOD_H8, // 8 hours
tf_h12 = PERIOD_H12, // 12 hours
tf_d1 = PERIOD_D1, // daily
tf_w1 = PERIOD_W1, // weekly
tf_mn = PERIOD_MN1, // monthly
tf_cp1 = -1, // Next higher time frame
tf_cp2 = -2, // Second higher time frame
tf_cp3 = -3 // Third higher time frame
};
//--- input parameters
input enTimeFrames inpTimeFrame = tf_d1; // Time frame
input string inpLevels = "0.382;0.618;1"; // Levels
input color inpPivot = clrGray; // Pivot color
input color inpFiboUp = clrDodgerBlue; // Upper fibo level
input color inpFiboDown = clrSandyBrown; // Lower fibo level
...
The indicator calculates 7 levels
How can I get those values in a ea?I tried to write like this :
iCustom(_Symbol,_Period,"Fibo Pivots Beta",inpTimeFrame,"0.382;0.618;1",clrGray,clrDodgerBlue,clrSandyBrown,0,0);
the penultimate index should be the indicator line then the ultimate should be the bar.But the value returned is always 10 that increse by one every tick.Someone knows how to get the actual values?Thanks