//+------------------------------------------------------------------+ //| Март.mq4 | //| Zuzabush-Cахалин| //| www.Zuzabush@yandex.ru | //+------------------------------------------------------------------+ #property copyright "Copyright c 2006, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" extern int P = 13; extern int distance=90; //+------------------------------------------------------------------+ //| expert initialization function -небольшой мандраж | //+------------------------------------------------------------------+ int init() { MathSrand(LocalTime()); return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function -Эх прокачу | //+------------------------------------------------------------------+ int err = 0; double Lot = 0.1; double Ballance=0.0; int start() { //---- if (OrdersTotal()==0&&err==0) { if (Ballance!=0.0) { if (Ballance>AccountBalance()) Lot=Lot+1; else Lot=Lot-1+(!(Lot>1)); } Ballance=AccountBalance(); int order; if ((iMA(NULL,0,P,6,MODE_SMA,PRICE_CLOSE,0))