tradetrade
Прохожий
Помогите приодолеть ошибку 130 и 129. Спасибо
extern double SellSL = 200;
extern double SellTP = 100;
extern double BuySL = 200;
extern double BuyTP = 100;
double Lot=0.01;
if((Suma_S >= Suma_Orderiv
|| Suma_B >= Suma_Orderiv)
&& OrdersTotal() < 1)
{
for(int s=0; s<=12; s++)
{
Print ("-----------------------------------------");
Print ("s ",s);
bool s_bool[12];
s_bool=0;
s_bool[0]=EURUSD_bool_S; s_bool[1]=GBPUSD_bool_S; s_bool[2]=USDCHF_bool_S; s_bool[3]=USDCAD_bool_S;
s_bool[4]=NZDUSD_bool_S; s_bool[5]=AUDUSD_bool_S; s_bool[6]=EURAUD_bool_S; s_bool[7]=EURCAD_bool_S;
s_bool[8]=EURCHF_bool_S; s_bool[9]=EURGBP_bool_S; s_bool[10]=EURNZD_bool_S; s_bool[11]=GBPCAD_bool_S;
s_bool[12]=GBPCHF_bool_S; s_bool[13]=GBPAUD_bool_S;
Print ("s_bool ",s_bool);
string x_string_s[12];
x_string_s="";
x_string_s[0]="EURUSD"; x_string_s[1]="GBPUSD"; x_string_s[2]="USDCHF"; x_string_s[3]="USDCAD";
x_string_s[4]="NZDUSD"; x_string_s[5]="AUDUSD"; x_string_s[6]="EURAUD"; x_string_s[7]="EURCAD";
x_string_s[8]="EURCHF"; x_string_s[9]="EURGBP"; x_string_s[10]="EURNZD"; x_string_s[11]="GBPCAD";
x_string_s[12]="GBPCHF"; x_string_s[13]="GBPAUD";
Print ("x_string_s ",x_string_s);
string Symb_s=x_string_s;
Print ("Symb_s ",Symb_s);
if(s_bool==true)
{
RefreshRates();
Alert("Try to open Sell. Wait for answer...");
Ticket=OrderSend(Symb_s,OP_SELL,Lot,Bid,3,NormalizeDouble(Ask+SellSL*Point,Digits),NormalizeDouble(Bid-SellTP*Point,Digits),"open by robot",77777,0,Red);// Sel
if(Ticket>0)
{
Alert("Opened order Sell ",Ticket," Symbol ", Symbol());
//return;
}
if(Fun_Error(GetLastError())==1)
Alert("GetLastError ",Ticket,"Symbol ", Symbol());
//continue;
//return;
}
Print ("-----------------------------------------");
}
}
extern double SellTP = 100;
extern double BuySL = 200;
extern double BuyTP = 100;
double Lot=0.01;
if((Suma_S >= Suma_Orderiv
|| Suma_B >= Suma_Orderiv)
&& OrdersTotal() < 1)
{
for(int s=0; s<=12; s++)
{
Print ("-----------------------------------------");
Print ("s ",s);
bool s_bool[12];
s_bool
s_bool[0]=EURUSD_bool_S; s_bool[1]=GBPUSD_bool_S; s_bool[2]=USDCHF_bool_S; s_bool[3]=USDCAD_bool_S;
s_bool[4]=NZDUSD_bool_S; s_bool[5]=AUDUSD_bool_S; s_bool[6]=EURAUD_bool_S; s_bool[7]=EURCAD_bool_S;
s_bool[8]=EURCHF_bool_S; s_bool[9]=EURGBP_bool_S; s_bool[10]=EURNZD_bool_S; s_bool[11]=GBPCAD_bool_S;
s_bool[12]=GBPCHF_bool_S; s_bool[13]=GBPAUD_bool_S;
Print ("s_bool
string x_string_s[12];
x_string_s
x_string_s[0]="EURUSD"; x_string_s[1]="GBPUSD"; x_string_s[2]="USDCHF"; x_string_s[3]="USDCAD";
x_string_s[4]="NZDUSD"; x_string_s[5]="AUDUSD"; x_string_s[6]="EURAUD"; x_string_s[7]="EURCAD";
x_string_s[8]="EURCHF"; x_string_s[9]="EURGBP"; x_string_s[10]="EURNZD"; x_string_s[11]="GBPCAD";
x_string_s[12]="GBPCHF"; x_string_s[13]="GBPAUD";
Print ("x_string_s
string Symb_s=x_string_s
Print ("Symb_s ",Symb_s);
if(s_bool
{
RefreshRates();
Alert("Try to open Sell. Wait for answer...");
Ticket=OrderSend(Symb_s,OP_SELL,Lot,Bid,3,NormalizeDouble(Ask+SellSL*Point,Digits),NormalizeDouble(Bid-SellTP*Point,Digits),"open by robot",77777,0,Red);// Sel
if(Ticket>0)
{
Alert("Opened order Sell ",Ticket," Symbol ", Symbol());
//return;
}
if(Fun_Error(GetLastError())==1)
Alert("GetLastError ",Ticket,"Symbol ", Symbol());
//continue;
//return;
}
Print ("-----------------------------------------");
}
}
Последнее редактирование модератором: