Daniel Cioca: it wont matter what input values I put, because I am still getting the result for the default inputs.
#property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Red //---- indicator parameters input int InpDepth=12; // Depth input int InpDeviation=5; // Deviation input int InpBackstep=3; // Backstep
ZZ only has one visible buffer (index zero)
Thanks!
My version has 3 buffers, but is only showing one. The other two are for calculation:
int OnInit() { if(InpBackstep>=InpDepth) { Print("Backstep cannot be greater or equal to Depth"); return(INIT_FAILED); } //--- 2 additional buffers IndicatorBuffers(3); //---- drawing settings SetIndexStyle(0,DRAW_SECTION); //---- indicator buffers SetIndexBuffer(0,ExtZigzagBuffer); SetIndexBuffer(1,ExtHighBuffer); SetIndexBuffer(2,ExtLowBuffer); SetIndexEmptyValue(0,0.0); //---- indicator short name IndicatorShortName("ZigZag("+string(InpDepth)+","+string(InpDeviation)+","+string(InpBackstep)+")"); //---- initialization done return(INIT_SUCCEEDED); }
Anyway, I have tried using only Buffer 0 as sugested, but still it will show the same value, regardless of what inputs I use
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
Hello! I have a problem with getting the values for an indicator into a script.
It is about ZigZag indicator, I am only getting the values for the default inputs as setted in the indicator.
If I change the input in my iCustom function it will not have any efect.
This is how I get the indicator values:
I acces function like this:
it wont matter what input values I put, because I am still getting the result for the default inputs.
Kindly advice!