• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Suggestion 313 Badar Crossover scalper


thanks! by the way, is the first version of 313 badar ea that u post at the begining of the thread still can be use? any expiry?
 
To understand, you need an English language in the screenshot, not Chinese, make the language English, English know people more than Chinese
no, even my VPS provider language is ENGLISH, its still gibberish fuckwhoknowwhattinggymagic is that
 
donot BT.
lots of orderclose error 138. big drawdown.
1111.png
 

Attachments

  • 1111.png
    1111.png
    163.4 KB · Views: 225
donot BT.
lots of orderclose error 138. big drawdown.
View attachment 56956


Error 138 refers to the coding


Code:
//close order routine /////////////////////////////////////////////////////////////////////////////////////////////////////

if ( (dprice1 <= -close)) buymsg="BUY";
if ( (dprice1 >= close)) buymsg="SELL";



if (sbuymsg != buymsg)
{
sbuymsg=buymsg;

for(int i=OrdersTotal()-1;i>=0;i--)
{
if(!OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
continue;
if(OrderSymbol()!=Symbol())
continue;

RefreshRates();


if(OrderType()==OP_BUY)
OrderClose(OrderTicket(),OrderLots(),Bid, 3,CLR_NONE);
if(OrderType()==OP_SELL)
OrderClose(OrderTicket(),OrderLots(),Ask, 3,CLR_NONE);
}
}
 
Back
Top