Erik Volk / Publications
Forum
Is ordertype value retained once order is closed?
I'm pretty certain the answer is no, since the reference specifies order property operation types are for the OrderSend() function, but I was wondering if you can select a closed order using the OrderSelect() function (MODE_HISTORY), then get a return value of the order operation type using
What does OrderGetString actually return?
In the MQL4 Reference guide, it says: "returns the requested property of the order(string)." However, there are two string arguments for OrderSend right? The symbol, and the comment. So which will this return? Both? Either
OrderType: A beginner's question
If an order gets sent through the OrderSend function as OP_BUYLIMIT, does it maintain that order type (i.e., 2) AFTER the entry price is reached and the order is entered? Or does the type then become 0, since it's no longer a buy limit pending order
how to correctly set up my Booleans
Very new to mql4 and programming in general. I currently have several boolean variables declared in this fashion: bool ShtRev = High[0] >= HiZone && MidPoint < Low[1]; bool ShtSzeCatLrg = ShtZone / (RangeHi-RangeLo) <= SizeCatLrgMax && ShtZone / (RangeHi-RangeLo) >= SizeCatMdMax; bool LngSzeCatLrg =
is there a way to automatically close all trades when a cumulative open profit/loss threshold gets breached?
Ok so I'm completely new to the MT world, and know absolutely nothing about coding. I've always just been a chart it out on tradingview kinda guy. But I have this different technique for Taking profit/loss I really want to try, and it would require some automation to do it. My question is, if I