areejyousefhussein: I had the following line
int OP_TYPE = int(0.5((1+f)*OP_BUY+(1-f)*OP_SELL));
and it gave me the error: " '+' - some operator expected". what am I supposed to do in this case?
There is a missing operator after the 0.5 ...
int OP_TYPE = int( 0.5 ??? ( ( 1 + f ) * OP_BUY + ( 1 - f ) * OP_SELL ) );
And please use the "</>" icon or Alt-S when adding code to your post.

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 had the following line
int OP_TYPE = int(0.5((1+f)*OP_BUY+(1-f)*OP_SELL));
and it gave me the error: " '+' - some operator expected"
what am I supposed to do in this case?