[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 396
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
Sorry, I can't compile a simple-simple line, it compiled to 0 before I put it in, now it compiles to
.
♪ put it in start ♪
I can't get the cycle right, on every tick a couple of orders are opened, it should be like this. When a tick comes, variable X is declared inside the loop, accordingly taking value 0.
Then X=number of orders is calculated within the loop, and if X=0 or 1, then they open.
You have declared a variable but not zeroed it. Therefore, with every tick it will only grow !!!!!!
That's not the right way to do it.
You have declared a variable but not zeroed it. Therefore, with every tick it will only grow !!!!!!
That's not right.
You are mistaken here. With every tick this variable is declared anew, hence it equals 0.
It takes it out of hand
This is where you are wrong. With every tick this variable is declared anew, so it equals 0.
Yes, if you set it as x=0, it is zeroed if you just set it as x:, it is not zeroed, it is incremented.
Yes, if you set it as x=0, it will go to zero if you just set it as x:, it won't go to zero, it will go up.
Where in the annals did you read that?