Please edit your post and use the code button (Alt+S) when pasting code.
EDIT your original post, please do not just post the code properly in a new post.
Keith Watford:
Please edit your post and use the code button (Alt+S) when pasting code.
EDIT your original post, please do not just post the code properly in a new post.
I think I did it correctly. Please take a look and let me know if it's OK now.
Peno313:
I think I did it correctly. Please take a look and let me know if it's OK now.
Yes, it is done correctly.
Don't post code that won't even compile.
bool Trade=false; ⋮ Trade.CloseAllMarketOrders();
Trade is a bool, it can not be a class/struct object and can't have methods.
William Roeder:
Don't post code that won't even compile.
Trade is a bool, it can not be a class/struct object and can't have methods.
Any suggestion on how to fix it?
Peno313:
Yes. Get a complete copy of that code.
Any suggestion on how to fix it?
lippmaje:
Yes. Get a complete copy of that co
Yes. Get a complete copy of that co
That code is from a book. Using it for practice. Any pertinent advice ?
lippmaje:
There should be a class named CTrade and CCount mentioned somewhere near this code, use it.
Thank you.
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,
I'm still having trouble clearing errors. Which consists of 'CloseAllMarketOrders'-struct or Class type expected, 'Trade'-struct or class type expected, and 'DeleteAllPendingOrders' struct or class type expected. I will post my code below and following I will post my include file code. Any help would be appreciated.