Your unbalanced left parenthesis is in your first "if"
then it will also execute where cnt=1.
Hope this helps.
if((MA5C<MA20C)
I think the problem with not closing your orders is that if there is only one order, your FOR loop is only executing with cnt=0 and never executes with cnt=1 because you are only iterating while cnt is less than total:
for(cnt=0;cnt<total;cnt++)
If you do it while cnt is less than or equal to total like this:
for(cnt=0;cnt<=total;cnt++)
then it will also execute where cnt=1.
Hope this helps.
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
The compiling also says that I have an " 'end_of_program/'-unbalanced left paranthesis" error on the very last line but I can't figure out how to fix it. Any help would be greatly appreciated.