[ARCHIVO]Cualquier pregunta de novato, para no saturar el foro. Profesionales, no lo dejéis pasar. No puedo ir a ningún sitio sin ti - 5. - página 65

 
Vinin:

apagados de tiempo

¿Qué es un tiempo muerto? ¡No es fútbol! :)
 
Macros:




Hacer en la apertura de la vela. Puedes encontrar muchos ejemplos. Puede empezar con el FAC
 
lottamer:

¿Qué es un tiempo muerto? ¡No es fútbol! :)

Según tengo entendido, se acabó el tiempo.
 
lottamer:

no funcionó.

Bueno, si no funcionó... BUENO OBVIAMENTE A<0 TODO EL TIEMPO POR ESO IMPRIMIÓ 6 GIGAS.
 
Vinin:

Hacer por la apertura de la vela. Hay muchos ejemplos que se pueden encontrar. Puedes empezar con el FAC.

Sí, hagamos la apertura, en lenguaje sencillo si es posible. Estoy cansado...
 
Macros:

Sí, vamos a repasar la apertura, en lenguaje sencillo si puedes. Estoy cansado de ser un dolor de cabeza...

No es la mejor opción, pero es el último puesto de la página
 
Sepulca:

Bueno, si no funcionó... BUENO OBVIAMENTE A<0 TODO EL TIEMPO POR ESO IMPRIMIÓ 6 GIGAS.

y <0 es la lectura del indicador.... puede ser constante de 10 a 20 minutos.... luego cambia... como el cruce de medias.
 

¡Buenas noches! Declarados 2 arrays dinámicos (así parece), así int Compra[];int Venta[]; Y no puedo asignar ningún valor a los elementos del array, las impresoras imprimen cero.

int Buy[];int Sell[];

int start()
  {
//----
    if (!PozyProstavleny){ 
   
           Price= (Ask+Dist*Point) ; TP_BUY=(Price+TP*Point);  SL_BUY= (Price- SL*Point);
           Price_SELL= (Bid-Dist*Point) ;  TP_SELL=Price_SELL-TP*Point;  SL_SELL=Price_SELL+SL*Point; 
           
   for(int Raz1=0;Raz1<Raz;Raz1++){Print ("Raz1",Raz1);
   
           Sleep(2000); RefreshRates();  for(int A=25;A>=0;A--){if(IsTradeAllowed())break;if(A==0)
           Comment(" эксперту не разрешено торговать или поток для выполнения торговых операций занят "); }           
  tyccBuy= OrderSend (Symbol( ), OP_BUYSTOP,  Lot ,NormalizeDouble(Price, Digits), 5, NormalizeDouble( SL_BUY,Digits), 
           NormalizeDouble( TP_BUY,Digits), NULL, 450, 0, CLR_NONE);
   Buy[Raz1]= tyccBuy;Print ("Buy[Raz1]",Buy[Raz1]," tyccBuy",tyccBuy);
           Price= (Price+Dist*Point) ; TP_BUY= (Price+TP*Point); SL_BUY= (Price- SL*Point);
           Error=GetLastError();
     if (Error!=0){ string errorcomment = "Ошибка открытия ордера байстоп  "  + " " + Symbol() +  " " + ErrorDescript(Error); 
           Print (errorcomment);}
           
           Sleep(2000); RefreshRates();  for( A=25;A>=0;A--){if(IsTradeAllowed())break;if(A==0)
           Comment(" эксперту не разрешено торговать или поток для выполнения торговых операций занят "); }        
           Sell[Raz1]=OrderSend (Symbol( ), OP_SELLSTOP,  Lot ,NormalizeDouble(Price_SELL, Digits), 5,
           NormalizeDouble( SL_SELL,Digits),   NormalizeDouble( TP_SELL,Digits), NULL, 450, 0, CLR_NONE);
     Price_SELL= (Price_SELL -Dist*Point) ;TP_SELL=Price_SELL-TP*Point;   SL_SELL=Price_SELL+SL*Point;
            Error=GetLastError();if (Error==0)
            
            {errorcomment = "Ошибка открытия ордера селлстоп  "  + " " + Symbol() +  " " + ErrorDescript(Error); 
        Print (errorcomment);} Print ("for1");PozyProstavleny=1; 
                       }
                       }   
                        

         
             

//----
 

Wearwolf GBPUSD,Diario: Comprar[Raz1]0 tyccBuy9

.........

Wearwolf GBPUSD,Diario: Comprar[0]0 Comprar[1]0 Comprar[2]0 Comprar[3]0


 
lottamer:

y <0 es la lectura del indicador.... puede ser constante de 10 a 20 minutos.... luego cambia... como el cruce de medias


Bueno, en primer lugar, es bastante realista meter 6 gigas en diez minutos. Resulta que con cada tilde que se imprime, ¿para qué se necesita?

Y en segundo lugar, ¿estás seguro de que cambia?

Tienes que poner algún tipo de semáforo para que se imprima una vez...

if ()  {buy}

else { ЕЩЕ_НЕ_ПЕЧАТАЛИ=true; 
 while (a<0) {if(ЕЩЕ_НЕ_ПЕЧАТАЛИ) {print ...; ЕЩЕ_НЕ_ПЕЧАТАЛИ=false;}    a=вычисление_нового_а;}
 ЕЩЕ_НЕ_ПЕЧАТАЛИ=true;
if (...) ... 
en algún lugar como este....