Belgacem Issam: i tried serval attempt but nothing works with me.
-
“Doesn't work” is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
How To Ask Questions The Smart Way. (2004)
When asking about code
Be precise and informative about your problem
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problemWe can't see your broken code.
- Belgacem Issam: what i want is to print the first line alone or the second.Count your lines that you are about to print. Print only those you want.
int Index1 = -1; double Value1 = 0.0; int Index2 = -1; double Value2 = 0.0; for(int i=0; i<count; i++) { if(ZigzagBuffer[i]!=PLOT_EMPTY_VALUE && ZigzagBuffer[i]!=0.0) { if(Index1==-1) { Index1 = i; Value1 = ZigzagBuffer[i]; Print("Index 1 : ",IntegerToString(i)," Value 1 : ",DoubleToString(Value1,_Digits)); continue; } if(index2==-1) { Index2 = i; Value2 = ZigzagBuffer[i]; Print("Index 2 : ",IntegerToString(i)," Value 2 : ",DoubleToString(Value2,_Digits)); break; } } }

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,
im using this code to print an array positif values, but i finding a difficulty to print a specific values,
the returned values are like this ......... candle: value
5: 0.95
8: 0.96
12: 0.955
22: 0.93
..
...
...
what i want is to print the first line alone or the second.
i tried serval attempt but nothing works with me.
regards