Creato da pippocor2 il 26/12/2007
arte
 

 

« Messaggio #22Messaggio #24 »

http://209.85.129.132/translate_

Post n°23 pubblicato il 25 Marzo 2009 da pippocor2

 

http://209.85.129.132/translate_c?hl=it&u=http://subscribe.ru/archive/fin.forex.forexprog/200903/20031533.html&usg=ALkJrhiLF0DU2JacV7r_9GXrCymjPgTIjg

 

bool b, s, bs, ss;
double LevelSell,LevelBuy; doppio LevelSell, LevelBuy;
//-- / / --
    for(b=false,s=false,bs=false,ss=false,i=OrdersTotal()-1;i>=0;i--) for (b = false, s = false, bs = false, ss = false, i = OrdersTotal () -1; i> = 0; i -)
    { (
       if(!OrderSelect(i,SELECT_BY_POS)) continue; if (! OrderSelect (i, SELECT_BY_POS)) continue;
       if(OrderSymbol()!=Symbol() || OrderMagicNumber()!=MAGIC) continue; if (OrderSymbol ()! = Symbol () | | OrderMagicNumber ()! = MAGIC) continuare;
       if(OrderType()==OP_SELL) if (OrderType () == OP_SELL)
       { (
          LevelSell=NormalizeDouble(OrderStopLoss(),Digits); LevelSell = NormalizeDouble (OrderStopLoss (), Digits);
          s=true; s = true;
       } else ) Else
       if(OrderType()==OP_BUY) if (OrderType () == OP_BUY)
       { (
          LevelBuy=NormalizeDouble(OrderStopLoss(),Digits); LevelBuy = NormalizeDouble (OrderStopLoss (), Digits);
          b=true; b = true;
       } else ) Else
       if(OrderType()==OP_SELLSTOP) ss=true; else if (OrderType () == OP_SELLSTOP) ss = true; altro
       if(OrderType()==OP_BUYSTOP) bs=true; if (OrderType () == OP_BUYSTOP) bs = true;
    } )
//-- / / --
    if(s && !bs) if (s & &! bs)
    { (
       if(StopLoss if (Stoploss
       else sl=NormalizeDouble(LevelSell-StopLoss*pnt,Digits); altro sl = NormalizeDouble (LevelSell-Stoploss * pnt, Digits);
       if(TakeProfit if (TakeProfit
       else tp=NormalizeDouble(LevelSell+TakeProfit*pnt,Digits); altro tp = NormalizeDouble (LevelSell + TakeProfit * pnt, Digits);
       tick=OrderSend(Symbol(),OP_BUYSTOP,Lot,LevelSell,0,sl,tp,CMM,MAGIC,0,Red); tick = OrderSend (Symbol (), OP_BUYSTOP, Lotto, LevelSell, 0, sl, tp, CMM, MAGIC, 0, rosso);
       if(tick>0) if (barrare> 0)
       { (
          ticknum=0; ticknum = 0;
          while(ticknum<90 && !OrderSelect(tick,SELECT_BY_TICKET)) while (ticknum <90 & &! OrderSelect (barrare, SELECT_BY_TICKET))
          { (
             ticknum++; Sleep(2000); ticknum + +; Sleep (2000);
          } )
       } )
    } )
    if(b && !ss) if (b & &! ss)
    { (
       if(StopLoss if (Stoploss
       else sl=NormalizeDouble(LevelBuy+StopLoss*pnt,Digits); altro sl = NormalizeDouble (LevelBuy + Stoploss * pnt, Digits);
       if(TakeProfit if (TakeProfit
       else tp=NormalizeDouble(LevelBuy-TakeProfit*pnt,Digits); altro tp = NormalizeDouble (LevelBuy-TakeProfit * pnt, Digits);
       tick=OrderSend(Symbol(),OP_SELLSTOP,Lot,LevelBuy,0,sl,tp,CMM,MAGIC,0,Blue); tick = OrderSend (Symbol (), OP_SELLSTOP, Lotto, LevelBuy, 0, sl, tp, CMM, MAGIC, 0, Blu);
       if(tick>0) if (barrare> 0)
       { (
          ticknum=0; ticknum = 0;
          while(ticknum<90 && !OrderSelect(tick,SELECT_BY_TICKET)) while (ticknum <90 & &! OrderSelect (barrare, SELECT_BY_TICKET))
          { (
             ticknum++; Sleep(2000); ticknum + +; Sleep (2000);
          } )
       } )
    } )


La URL per il Trackback di questo messaggio è:
https://blog.libero.it/liberofree/trackback.php?msg=6767344

I blog che hanno inviato un Trackback a questo messaggio:
Nessun trackback

 
Commenti al Post:
Nessun commento
 

Area personale

 

Tag

 

Archivio messaggi

 
 << Agosto 2024 >> 
 
LuMaMeGiVeSaDo
 
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
 
 

FACEBOOK

 
 

Cerca in questo Blog

  Trova
 

Ultime visite al Blog

ossurerottepippocor2favolosissimamentegatta.sissiLimpidamente0lupettadellenevilogictekannamatantlaybis.1dreamkeeperdovrei_manonvoglioBreezeerilaria290878milionidieurokremuzio
 

Ultimi commenti

Chi può scrivere sul blog

Solo l'autore può pubblicare messaggi in questo Blog e tutti gli utenti registrati possono pubblicare commenti.
 
RSS (Really simple syndication) Feed Atom
 
 
 
 

© Italiaonline S.p.A. 2024Direzione e coordinamento di Libero Acquisition S.á r.l.P. IVA 03970540963