Hi, i am a little bit confused... MyFXBook calculate pips in trade history: I want to calculate this "pips" in my EA oder Indicator. MyFXBook deleted my forum post, so I try to ask one of you how this value is calculated? Thanks in Advance Best regards Maddin
Hi Guys, i've the following code sample: void OnTick() { //--- /* Check for Open Orders */ for (int cnt = 0; cnt < OrdersTotal(); cnt++) { if (!OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES)) continue; if (OrderSymbol() == Symbol()) { if
Hi, i have an EA which runs in 6 charts with different symbols. Sometimes (after Error 136 (Off quotes)) the EA stop working. This means, that the EA don't receive ticks. From there it is also ot possible to go to the EA settings window (click smily top right corner or hit F7). Any Idea? thanks in
Hi, yesterday, I got a strange error. After lot calculation, I normalize and make a AccountFreeMarginCheck. double LotStep = MarketInfo( Symbol (),MODE_LOTSTEP); double Lot = 2.13138833 ; // I get this value from calculations double myLot = MathRound (Lot/LotStep) * LotStep; double
Hi, I have an EA and installed MetaTrader 4 Client Terminal build 610, it seems everything is fine, EA is working as expected, but there is a warning in the toolbox, which I cannot understand: sign mismatch I use a function taken from https://www.mql5.com/en/articles/1412 and the warning is in this
my EA has written the value of "Bars" to the MetaTrader log file. Since yesterday afternoon there is an unusual phenomenon. Nearly every two hours, the value is reducing by 128 points. example given: time value of Bars 14 : 30 1200 14 : 31 1201 14 : 32 1202 14 : 33 1074 14 : 34
Hi, i try to send a string from mql to dll and work with them... Code in MQL: #import "myDLL.dll" bool SetString( string foo); #import //+-------------------------------------------------------+ int start() { string foo = "bar" ; SetString(foo); } Code in DLL (taken from
Hi, hopefully it is possible and I am on the right way. Lets say I have a function within a DLL: double ReturnArray() { double aReturn[ 2 ]; aReturn[ 0 ] = 1.34567 ; aReturn[ 1 ] = 1.35678 ; return (*aReturn); } Now, I would like to work with this array in MQL double myArr[ 2 ] =
Lets assume the following (simplified) Code: extern double Lots = 0.1 ; extern double LotMultiplier = 1.4 ; /* First Order */ myLot = 0.1 ; /* Second Order */ myLot = 0.1 * LotMultiplier; // = 0.14 /* Third Order */ myLot = 0.14 * LotMultiplier; // = 0.196 /* ... n Orders ...*/ myLot =
I try to make my EAs fit for 4-digit AND 5-digit Broker. Currently I use 5 Digit Broker Lets Assume I have StopLoss 20 and TakeProfit = 60. This is my current Calculation: int StopLoss = 20 ; int TakeProfit = 60 ; double tp = Ask + TakeProfit*myPoint; double sl = Ask - StopLoss*myPoint; // BUY