vadynik: Why an order closes immediately on the next tick, my head is already boiling over, I'm trying to make an order close at a certain number of pips from the price, like a virtual stop...
vadynik: Why the order is closed immediately at the next tick, my head is already boiling because I am trying to close it by a certain amount of points from the price, sort of a virtual stop...
This would be the same as if you did the following calculation on this line:
MarketInfo(Symbol(),MODE_SPREAD) returns result in pips, it's written in description. Is it in int or double ? It doesn't say anything about it. Thank you in advance.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Why an order closes immediately on the next tick, my head is already boiling over, I'm trying to make an order close at a certain number of pips from the price, like a virtual stop...
Print out the value
...
Why the order is closed immediately at the next tick, my head is already boiling because I am trying to close it by a certain amount of points from the price, sort of a virtual stop...
This would be the same as if you did the following calculation on this line:
if ((100 >=100-30)||(100 <=100 + 25))
{
Print(100) ;
OrderClose(OrderTicket(),OrderLots(),Bid,50,Blue) ;
}
You see what I mean?)
It's like if you did the following calculation on this line:
if ((100 >=100-30)||(100 <=100 + 25))
{
Print(100) ;
OrderClose(OrderTicket(),OrderLots(),Bid,50,Blue) ;
}
See what I mean?)
Yes, the logic is floating))
Yes, the logic swam)))
It will...))) At first, I think everyone did...))
It will...)))) at first, I think everyone had that))))
Yeah hard to start) thanks for the help
That's how it works.
can you tell me how to write "some condition, then request manual confirmation" on MLQ4?
The MessageBox function creates and displays a message box and controls it.
The MessageBox function creates, displays and manages a message box.
Thank you, we'll study it...)
Thank you, we'll look into it...)
example
Hi all. Can you give me a suggestion?
MarketInfo(Symbol(),MODE_SPREAD) returns result in pips, it's written in description. Is it in int or double ? It doesn't say anything about it. Thank you in advance.