[ARQUIVO]Qualquer pergunta de novato, para não desorganizar o fórum. Profissionais, não passem por ela. Não posso ir a lugar nenhum sem você - 5. - página 65

 
Vinin:

tempo para paradas

O que é um tempo fora? Não é futebol! :)
 
Macros:

Olá a todos! Ajudem-me se for possível refazer ? quero posições para abrir ao fechar uma vela abaixo ou acima da linha . talvez um roteiro separado para adicionar ?



Faça na abertura da vela. Você pode encontrar muitos exemplos. Você pode começar com FAC
 
lottamer:

O que é um tempo fora? Não é futebol! :)

Pelo que entendi, o tempo acabou.
 
lottamer:

não funcionou.

Bem, se não funcionou... BEM OBVIAMENTE A<0 O TEMPO TODO, POR ISSO IMPRIMIU 6 GIGS.
 
Vinin:

Faça pela abertura da vela. Há muitos exemplos a serem encontrados. Você pode começar com FAC.

Sim, vamos fazer a abertura, se possível em linguagem simples. Estou cansado disso...
 
Macros:

Sim, vamos rever a abertura, em linguagem simples, se você puder. Estou cansado de ser um chato...

Não é a melhor opção, mas o último post da página
 
Sepulca:

Bem, se não funcionou... BEM-VINDO OBVIO A<0 TODO O TEMPO QUE IMPRESSÃO 6 GIGS.

e <0 é o indicador de leitura.... pode ser constante de 10 a 20 minutos.... então ele muda... como cruzar médias.
 

Boa noite! Declarado 2 matrizes dinâmicas (ao que parece), tão compradas[]; tão vendidas[]; E não posso atribuir nenhum valor aos elementos da matriz, as impressoras imprimem zero.

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,Daily: Buy[Raz1]0 tyccBuy9

.........

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


 
lottamer:

e <0 é o indicador de leitura.... pode ser constante de 10 a 20 minutos.... Depois muda...como cruzar médias


Bem, antes de mais nada, é bastante realista encher 6 gigs em dez minutos. Acontece que a cada carrapato uma impressão, por que você precisa dela?

E em segundo lugar, você tem certeza de que isso muda?

É preciso colocar algum tipo de semáforo para que seja impresso uma vez.

if ()  {buy}

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