//+------------------------------------------------------------------+ //| //+------------------------------------------------------------------+ #property copyright "Copyright #property link "http://www. #property version "1.00" #property strict //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ input int TakeProfit = 100; input int StopLoss = 100; input double Lots = 0.1; input int Slip = 300; input int Magic = 0; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int OnInit() { //--- //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { double tp = NormalizeDouble(TakeProfit*_Point,_Digits); double sl = NormalizeDouble(StopLoss*_Point,_Digits); int Iperemennaya = 2; double Dperemennaya = 2; bool Bperemennaya = true; string Speremennaya = "Privet !"; color Cperemennaya = clrRed; //Podchot orderov// int b=0; int s=0; for(int i=0; 1Open[1]) { int tik=OrderSend(_Symbol,OP_BUY,Lots,Ask,Slip,0,0,"",Magic,0,clrBlue); if(tik>0) Print("BUY OK!"); else Print("BUY Error!"); } if(s==0 && Close[1]>Open[1]) { int tik=OrderSend(_Symbol,OP_SELL,Lots,Bid,Slip,0,0,"",Magic,0,clrBlue); if(tik>0) Print("BUY OK!"); else Print("BUY Error!"); } //podkljuchenie Zikla mnozhestvo orderov// for(int i=0; 1