[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 194
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
Thank you: And this one expired - Is there any way to tweak it so it doesn't have a time limit?
No, but you can get in the bathhouse.
Thank you: And this one has expired -Can it be tweaked somehow so it doesn't have a time limit?
Yeah. What the hell are the moderators doing... And will this outrage stop or not?
The MTFPI-sub1 indicator is missing
Thank you for the tip. I'm going to save this indicator, maybe some of the newbies like me will need it.
Hi, just signed up and decided to start a thread. I think it's the right thing to do as I have a lot of questions myself.
I'm tired of looking for answers on other forums, some flooders. I have no idea what to do with the topic.
The question is whether there is an adviser who opens the lot in two sides and a script that closes all the deals?
I have something, but in my opinion there are mistakes, look at at your leisure please.
Hello! There is an error and it is typical for beginners.
The closing price of a market order should be the bid or offer price (the current market price), and OrderClosePrice() is not a price but a function that returns the value of an already closed order (selected from the order history).
OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),2); This is an incorrect function call - it must be something like this:
OrderClose(OrderTicket(),OrderLots(),Bid,2) for a BUY position
or as follows
OrderClose(OrderTicket(),OrderLots(),Ask,2) for a Sell (SELL) position.
Based on the experience of my own mistakes, I strongly advise you to read the manual and the MT4 tutorial first - 90% of the questions will disappear by themselves. As the saying goes, "For a lifetime - a lifetime of learning", and for better adaptation to MT4, read "MQL4 Language for Dummies", in the "Articles" section, where you can find many useful topics in simple language.
P.S. I wish you have everything and you don't get anything for it.
Good day! There is an error and it's typical for a beginner - I'm not yet a pro myself, but I'm learning.
In the closing price of a market order, there should be a bid or ask price (the current market price), but OrderClosePrice() - This is not a price, it is a function that returns the value of an already closed order (selected from the order history).
OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),2); this is an incorrect function call - it must be something like this:
OrderClose(OrderTicket(),OrderLots(),Bid,2 ) for a BUY position
or as follows
OrderClose(OrderTicket(),OrderLots(),Ask,2 ) for a Sell (SELL) position.
Based on the experience of my own mistakes, I strongly advise you to read the manual and the MT4 tutorial first - 90% of the questions will go away by themselves. As the saying goes, "For a lifetime - a lifetime of learning", and for better adaptation to MT4, read "MQL4 Language for Dummies", in the "Articles" section, where you can find many useful topics in simple language.
P.S. I wish you have everything and nothing for it.
OrderClosePrice() works fine, but use is not recommended