//+------------------------------------------------------------------+ //| V1 PERS | // // #property copyright "" #property link "" int timeframe = 0; double stopLoss = 1000; extern double TakeProfit = 27; string Name_Expert = "V1 PERS"; int Slippage = 10; bool UseSound = false; string NameFileSound = "alert.wav"; double InitLots = 0.01; extern double Multiplier =2; extern int D=20; extern int MaxTrades =20; //EURUSD H1 best double MaxLot =1; extern int SL=20; double s=0; int T,B,c; int PercentForProtection=100; // Modify HERE the percent for profit protection!!! int ac=463552; // Modify the account number as you like! int expday=1; // Modify the expiry day as you like! It will stop working on this day. int expmonth=12; // Modify the expiry month as you like! int expyear=2006; // Modify the expiry year as you like! double Lots,Long,Short,P,I,X,Y; double Last=EMPTY_VALUE; int init(){return(0);} int deinit(){return(0);} int start(){ if(Bars<100) {Print("bars less than 100");return(0);} if(timeframe==0) {timeframe=Period();} double Price=iClose(NULL,0,0); double RSI=iClose(NULL,0,1); double RS1=iOpen(NULL,0,1); if (!ExistPositions()) s=0; int T=0; for(int i=0;i6000) MaxLot=MathFloor(AccountBalance()/40)/100; if (Lots>MaxLot) Lots=MaxLot; if (Lots>100) Lots=100; if (Lots<0.01) Lots=0.01; if (T==0) { Long=1000; Short=-1000;} if (Long==0) Long=1000; if (Short==0) Short=-1000; if (T>0) { if ((s==1)&&(Long>Last)) Long=Last; if ((s==2)&&(Short