Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1808
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
Good afternoon. I'm learning to write code and I have a problem. The code in the tester runs, opens one trade and that's it. The price does not change, everything stops in place.
Who is not difficult, please advise.
Good afternoon. I'm learning to write code and I have a problem. The code in the tester runs, opens one trade and that's it. The price does not change, everything stops in place.
Who doesn't mind, please advise.
Ask+TakeProfit*_Point+OrderSwap()+OrderCommission()
How do you add swap and commission to the price?
How do you add swap and commission to the price?
How do I do it?)
Do you think this is a problem?
How I know how to count.)
Do you think that's the problem?
First, when you open a swap, there is no swap.
Second, let's assume the commission of 1$ you open an order on the pound at 1.32500
you add (TakeProfit) 200*_Point and (commission) 1$ and you end up with a Take of 2.32700 ... In what decade would that be?
Add onTimer to onTick
Thank you
How I know how to count.)
Do you think that's the problem?
No, it's not right.
With OrderModify, that's more correct.
And better as a separate block.
How I know how to count.)
Do you think that's the problem?
I don't think that's the problem, it's just not right. And as for the tester freezing, you'd better post the whole code and we'll see.
OrderCommission()*_Point
That's not right either.
_Points are decimal places and do not translate to points in any wayI don't think that's the problem, it's just not right. And as for the tester freezing, you'd better post all the code and see.
That's not right either.
_Point is decimal places and does not translate to points in any wayIt's all there. Thanks for your help.