Xiaolei Liu: but it is repaint ,how to not repaint ?
for(int i=0; i<limit; i++)
Change the two loops to count down.
for(i=limit; i>=0; i--)
Can anyone solve this problem ?
Como faço para indexar 2 pares de forex para long short?
Edvaldo Silva #: Como faço para indexar 2 pares de forex para long short?
English: This is the English forum. Please write in English. If you prefer you can use the Portuguese forum.
Português; Este é o fórum em inglês. Escreva por favor em inglês. Se preferir pode usar o fórum português.
for(int i=0; i<limit; i++) { MaxH = High[Highest(NULL,0,MODE_HIGH,period,i)]; MinL = Low[Lowest(NULL,0,MODE_LOW,period,i)]; price = (High[i]+Low[i])/2; ExtBuffer0[i] = (price - MinL) / (MaxH - MinL) - 0.5; /*Value = 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value1; Value=MathMin(MathMax(Value,-0.999),0.999); ExtBuffer0[i]=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1; Value1=Value; Fish1=ExtBuffer0[i];*/ if (ExtBuffer0[i]>0) ExtBuffer1[i]=10; else ExtBuffer1[i]=-10; }
for(i=limit; i>=0; i--) { double sum = 0; double sumw = 0; for(int k=0; k<smooth && (i+k)<Bars; k++) { double weight = smooth-k; sumw += weight; sum += weight*ExtBuffer1[i+k]; } if (sumw!=0) ExtBuffer3[i] = sum/sumw; else ExtBuffer3[i] = 0; } /*for(i=0; i<=limit; i++) { sum = 0; sumw = 0; for(k=0; k<smooth && (i-k)>=0; k++) { weight = smooth-k; sumw += weight; sum += weight*ExtBuffer2[i-k]; } if (sumw!=0) ExtBuffer3[i] = sum/sumw; else ExtBuffer3[i] = 0; }*/The zero-lag property is lost.
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 ,friend , i have a indicator , but it is repaint ,how to not repaint ?
Following is the source code: