![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
That's not exact. OrderClosePrice() returns the bid/ask and it's best practice to use it with OrderClose().
www.mql5.com/en/forum/158890/page3#comment_3812636
Thank you for your comment and link. Maybe I'm wrong but years ago it didn't work. Has there been a change?
Here's the coding:
I've edited your code a little bit. Just for study purpose ;-)
How to manage JPY pairs with parameters? - MQL4 and MetaTrader 4 - MQL4 programming forum
Slippage defined in index points - Currency Pairs - Expert Advisors and Automated Trading - MQL5 programming forum
What a PIP is??? I know what a PIP mean within currencies but could you explain me what a PIP is within metals, indexes...? I always use TickSize and I'm satisfied with that. Or is there a risk with using TickSize?
For example Crude Oil from my broker:
Digits after decimal point: 3
Point size in the quote currency: 0.001
Tick size in points: 0.010
OK, but you never use "Pips" in your code behind the block.
I moved the conversion stuff to the OnInit() block, this is a better way to code it?
For example:
Thanks! I'll try that way!
Is there any reason for using Pips? I don't think so.
I'm planning to make the previous Lots structure on SL and TP so it would have no problem when both are set to 0, maybe I'll use it to the slippage too but not sure yet how to properly structure it.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.
www.mql5.com/en/forum/158890/page3#comment_3812636
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 and MetaTrader 4 - MQL4 programming forum
How to manage JPY pairs with parameters? - MQL4 and MetaTrader 4 - MQL4 programming forum
Slippage defined in index points - Currency Pairs - Expert Advisors and Automated Trading - MQL5 programming forum
Thanks!
How do I select a specific part of a comment to reply to it? As you did on each number:)
What do you suggest to do on the pip part?
EDIT: I read the code on the link you posted but didn't understood it, would you explain it?
If you had bothered to read the second link provided in #20.6 you would see that my synthetic PIP starts with tick size.
I've edited your code a little bit. Just for study purpose ;-)
Thanks! I'll edit on my own then compare it to that one! I think it could be a good way to learn from it:D