
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
...
An update : ____________________________________about account sizes : the way this ea works (the logic of the partial exits and partial taking profits), for safe working it needs more money (but all about that you can find on some of the previous posts) especialy for brokers that do not allow minimum 0.01 lots for example
about version : don't be alarmed with the 1.14 version. Versions 1.12 and 1.13 were just internal versions while updating this EA so they were not posted anywhere.
____________________________________
PS: found one error on a brokers with a minimal lot 0.1 that concerns partial closes : if the last portion of the partial close was < than the minimalLot (0.1 in this case) there was an error that caused it to wait till stop loss hit (in most of the cases it is in profit (since stop loss is adjusted to lock profit)) but anyway, it is an unpleasant error.
Please, if your Close1 procedure (starts at line 799) does not look like this one, than please re-download the source
{
string message;
int err = 0;
double minLot = NormalizeDouble(MarketInfo(Symbol(),MODE_MINLOT),2);
//
//
//
//
//
if (IsTesting() || CheckTradeAllowed())
{
for(int cnt=OrdersTotal()-1; cnt>=0; cnt--)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber()!=MagicNumber) continue;
if (OrderSymbol() != Symbol()) continue;
//
//
//
//
//
if (OrderType()==OP_BUY || OrderType()==OP_SELL)
{
RefreshRates();
if (OrderType()==OP_BUY)
{ string operation = "buy"; color theColor = Blue; double cp = Bid;}
else { operation = "sell"; theColor = Red; cp = Ask;}
//
//
// this part is changed for 0.1 lot brokers
// if you do not have line if (OrderLots()<2.0*minLot)
// please redownload the source
//
//
if (OrderLot!=OrderLots())
{
OrderLot = MathMax(minLot,OrderLot);
if (OrderLots() < 2.0*minLot)
OrderLot = OrderLots();
}
if (OrderLot!=OrderLots())
message="partialy closed "+operation+" - closed "+DoubleToStr(OrderLot,2)+" lots";
else message=operation+" order closed";
//
//
//
//
//
for(int c=0 ; c<NumberOfTries; c++)
{
OrderClose(OrderTicket(),OrderLot,cp,slippage,theColor);
err=GetLastError();
checkError(message,err);
if(err==4 || err==136 || err==137 || err==138 || err==146) //Busy errors
{
Sleep(5000);
continue;
}
break;
}
break;
}
}
}
}
Your welcome ND
And, the answer to 4/5 digits is yes (there is no need to set anything in the parameters - it adjusts itself to broker (it was solved by igorad already))
If they decide to make 6 digits, then we shall need to make some modifications
regards
mladen
Thanks a lot.
I will test this version since Sunday with my Electra settings: https://www.mql5.com/en/forum/178196/page24
As I understand: this version works with any 4/5 digit broker.help
Frustrating
Electra 5 digit still not working with MB trading
please a little bit of help
Try 1.14 from this page: it is for 4 and 5 digit broker and with many suffuxes simultaniously. All in one.
electra 1.14 do not working, anybody know why?
electra 1.14 do not working, anybody know why?
I could be wrong but this is broker problem
electra 1.14 do not working, anybody know why?
you dont have smily face in corner.. check your mt4 tools/options..
Try 1.14 from this page: it is for 4 and 5 digit broker and with many suffuxes simultaniously. All in one.
good deal will fire it up on eur/usd tonight..
I could be wrong but this is broker problem
Sorry.
Wrong answer. I forgot EA setup overrides global setup
Thanks 50club.
That means if you have the option "Allow live trading" clicked on only on Tools --> Options you will have a smiley face anyway.
Check on common tab of your EA if "Allow live trading" is allowed. Click on the face and...
thanks Linuxser
Now my electra 1.14 is working. Thanks alot