ramp:
I have a question about your code: why is there a "return" statement at the end of the OrdersOpen() function? You are not returning any value, so I
was wondering what its purpose is.
Hello guys.
Iam trying to achieve increasing lot size for future order (long or short) when current order (long or short) is in negtavie profit. There
can be maximum
of two current orders in the same time.
I've got so far:
I do not know why, but increasing LotSize in this condition does not work. When I tried to print some string instead of increasing
LotSize in same condition (OrderProfit()<0), it worked fine.
Why is the change LotSize value completly ignored?
And
yes, I know martingale, there is no need to comment this "strategy". Just need to solve written above.
Thank you very much.
WindmillMQL:
I have a question about your code: why is there a "return" statement at the end of the OrdersOpen() function? You are not returning any value, so I was wondering what its purpose is.
Aaaaaahhh... Thank you man. It seems not to be good coding a long time, I cannot see simply basics then... :/ I have a question about your code: why is there a "return" statement at the end of the OrdersOpen() function? You are not returning any value, so I was wondering what its purpose is.
Already solved
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
Hello guys.
Iam trying to achieve increasing lot size for future order (long or short) when current order (long or short) is in negtavie profit. There can be maximum of two current orders in the same time.
I've got so far:
I do not know why, but increasing LotSize in this condition does not work. When I tried to print some string instead of increasing LotSize in same condition (OrderProfit()<0), it worked fine.
Why is the change LotSize value completly ignored?
And yes, I know martingale, there is no need to comment this "strategy". Just need to solve written above.
Thank you very much.