//+------------------------------------------------------------------+
//|                                          BUY_AUD_BASKET_TRADE.mq4|
//+------------------------------------------------------------------+

/*double S1_Lots;
double S2_Lots;
double S3_Lots;
double S4_Lots;
double S5_Lots;
double S6_Lots;
double S7_Lots;
double S8_Lots;
double S9_Lots;
double S10_Lots;
double S11_Lots;
double S12_Lots;
double S13_Lots;
double S14_Lots;*/

#property show_inputs
extern double Lots = 0.1;
extern string Symbol_1 = "AUDUSD";
extern bool S1_Buy = true;
extern double S1_Lots = 0.1;
extern string Symbol_2 = "GBPAUD";
extern bool S2_Sell = true;
extern double S2_Lots = 0.1;
extern string Symbol_3 = "AUDCHF";
extern bool S3_Buy = true;
extern double S3_Lots = 0.1;
extern string Symbol_4 = "EURAUD";
extern bool S4_Sell = true;
extern double S4_Lots = 0.1;
extern string Symbol_5 = "AUDJPY";
extern bool S5_Buy = true;
extern double S5_Lots = 0.1;
extern string Symbol_6 = "AUDNZD";
extern bool S6_Buy = true;
extern double S6_Lots = 0.1;


int magic=2024;
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
//S1_Lots = Lots;
if(S1_Lots > 0)
{
   if(S1_Buy == 1)
   OrderSend(Symbol_1,OP_BUY, S1_Lots, MarketInfo(Symbol_1,MODE_ASK), 2, NULL, NULL, "AUD Buy "+Symbol_1+" Bought", magic, NULL, Green);
}
//S2_Lots = Lots;
if(S2_Lots > 0)
{
   if(S2_Sell == 1)
   OrderSend(Symbol_2,OP_SELL, S2_Lots, MarketInfo(Symbol_2,MODE_BID), 2, NULL, NULL, "AUD Buy "+Symbol_2+" Sold", magic, NULL, Green);
}
//S3_Lots = Lots;
if(S3_Lots > 0)
{
   if(S3_Buy == 1)
   OrderSend(Symbol_3,OP_BUY, S3_Lots, MarketInfo(Symbol_3,MODE_ASK), 2, NULL, NULL, "AUD Buy "+Symbol_3+" Bought", magic, NULL, Green);
}
//S4_Lots = Lots;
if(S4_Lots > 0)
{
   if(S4_Sell == 1)
   OrderSend(Symbol_4,OP_SELL, S4_Lots, MarketInfo(Symbol_4,MODE_BID), 2, NULL, NULL, "AUD Buy "+Symbol_4+" Sold", magic, NULL, FireBrick);
}
//S5_Lots = Lots;
if(S5_Lots > 0)
{
   if(S5_Buy == 1)
   OrderSend(Symbol_5,OP_BUY, S5_Lots, MarketInfo(Symbol_5,MODE_ASK), 2, NULL, NULL, "AUD Buy "+Symbol_5+" Bought", magic, NULL, Green);
}
//S6_Lots = Lots;
if(S6_Lots > 0)
{
   if(S6_Buy == 1)
   OrderSend(Symbol_6,OP_BUY, S6_Lots, MarketInfo(Symbol_6,MODE_ASK), 2, NULL, NULL, "AUD Buy "+Symbol_6+" Bought", magic, NULL, Green);
}

return(0);
  }
//+------------------------------------------------------------------+