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
Try again ..
Make sure don't change anything in the code.
Try again ..
Make sure don't change anything in the code.
I understand this but what i mean is this, witch is not equal to your first example in your src box.
And wrapping these, there is no difference is in result!
So wrapping in the whole icustom function with brackets, wont do any diffrence, unless its not a part of a complex logic.?
So wrapping in the whole icustom function with brackets, wont do any diffrence, unless its not a part of a complex logic.
Correct brackets/bracers {}
i=0;
while(n<5)
{
if(p0>0) {p5=p4; p4=p3; p3=p2; p2=p1; p1=p0; }
p0=iCustom(Symbol(), 0, "mycustomindicator", 0, 0, 3, 0, i);
if(p0>0) {n+=1; }
i++;
}
int n=0;
for(int i=0; i < Bars && n < 5; ++i){
p[n] = iCustom(Symbol(), 0, "mycustomindicator", 0, 0, 3, 0, i);
if(p[n]>0) ++n;
}
lacement of braces is uber important.
When you use any of the operators. if, while, for etc. The braces define the scope of the operator.
example
lacement of braces is uber important.
When you use any of the operators. if, while, for etc. The braces define the scope of the operator.
lacement of braces is uber important.
When you use any of the operators. if, while, for etc. The braces define the scope of the operator.
Well yeah, but still, if he knows what they are supposed to be for he might better understand when they are not required.