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
Without rancor, best regards.
I agree. Help the poster to learn (even if it's RTFM because he was too lazy,) to see the overlooked mistake (other eyes,) expanded reasons (like 1/2=0,) or complicated non obvious algorithms.
True/False NonZero/0 are interchangeable in mq4.
I agree. Help the poster to learn (even if it's RTFM because he was too lazy,) to see the overlooked mistake (other eyes,) expanded reasons (like 1/2=0,) or complicated non obvious algorithms.
True/False NonZero/0 are interchangeable in mq4.
This was something I had to think about William
if ((OrderType() == ((OP_BUYSTOP) ||(OP_SELLSTOP))))
See now it is always 1
This is something you have to think about William
In this case the selected OrderType is never OP_BUYSTOP and OP_SELLSTOP but it can be at most one of them
I think you are overlooking one crucial thing, it is not really relevant what OrderType() is or isn't until ((OP_BUYSTOP) ||(OP_SELLSTOP)) is evaluated and it will always result in true ( 1 ).
From the code given above the test will always be; does OrderType() == true ( 1 )
I think you are overlooking one crucial thing, it is not really relevant what OrderType() is or isn't until ((OP_BUYSTOP) ||(OP_SELLSTOP)) is evaluated and it will always result in true ( 1 ).
From the code given above the test will always be; does OrderType() == true ( 1 )
Your right with it Simon my mistake have checked it with a test and came to your conclusion.... it is always 1 never 0
Thank you pointing out