Tutte le domande dei nuovi arrivati su MQL4 e MQL5, aiuto e discussione su algoritmi e codici - pagina 1827

 
Tretyakov Rostyslav #:

Non sarò in grado di aiutare. Dobbiamo riscrivere l'indicatore.

Ce l'hai fatta, Rostislav!

Per aspera ad astra!

Grazie per le vostre risposte, per la vostra preoccupazione!

File:
i1jcmxzuv6a.jpg  350 kb
 
Kedrov #:

Ce l'abbiamo fatta, Rostislav!

Per aspera ad astra!

Grazie per le vostre risposte, per la vostra preoccupazione!

Chiarimento - solo non M15 minuti, ma M5. Allora mostra più accuratamente

 
Ciao. Come faccio a fare automaticamente uno screenshot?
Ho visto Truly ScreenShot Indicator sul web, ha estensione ex4 (file chiuso). Per il tester ho bisogno di dll o mq4
Ho trovato la funzione
ChartScreenShot, ma non so come implementarla
ChartScreenShot - Операции с графиками - Справочник MQL4
ChartScreenShot - Операции с графиками - Справочник MQL4
  • docs.mql4.com
ChartScreenShot - Операции с графиками - Справочник MQL4
 
Vladimir Makhnin ChartScreenShot, ma non so come implementarla

Cosa esattamente non funziona?

 
Vladimir Makhnin ChartScreenShot, ma non so come implementarla

Vuoi che riscriva tutta la documentazione qui? O vuoi leggerlo lì?

Esempio:

#property description "Советник демонстрирует создание серии скриншотов текущего графика"
#property description "с помощью функции ChartScreenShot(). Имя файла для удобства также"
#property description "выводится на график. Высота и ширина рисунков задается макросами."
 
Vladimir Makhnin ChartScreenShot, ma non so come implementarla

Se volete un esempio di come usarlo, qui:


input int Screenshot_Seconds;
input datetime Starting_From;
input string ID_Name;

...

datetime now_time;
datetime screen_timer;

...

void MakeScreenshot()
  {
   if(Screenshot_Seconds<=0)
      return;

   if(now_time>screen_timer)
     {
      if(screen_timer==0)
         screen_timer=Starting_From;

      while(screen_timer<=now_time)
         screen_timer+=Screenshot_Seconds;

      string time_text=TimeToString(now_time,TIME_DATE|TIME_SECONDS);

      StringReplace(time_text,".","-");
      StringReplace(time_text,":","-");

      string name=ID_Name+"\\"+ID_Name+"-"+time_text+".gif";

      ChartScreenShot(chart,name,Screenshot_Width,Screenshot_Height);
     }
  }

qui, gli screenshot sono presi a intervalli impostati Screenshot_Seconds a partire da Starting_From time

la variabile now_time dovrebbe essere aggiornata in OnTick o OnTimer

 
Andrey Sokolov #:

Cosa esattamente non funziona?

Funzione ChartScreenShot
creare - EA - fare copia-incolla - compilare
Errori


 
Vladimir Makhnin #:

Funzione ChartScreenShot
create - EA - make copy-paste - compile
Errori

***

Un'immagine può essere allegata a un messaggio usando il pulsante Allega file o inserita in un messaggio usando il pulsante Immagine.

 
transcendreamer #:

Se volete un esempio di come usarlo, qui:


qui, gli screenshot sono presi a intervalli impostati Screenshot_Seconds a partire da Starting_From time

la variabile now_time dovrebbe essere aggiornata in OnTick o OnTimer


Scolds punti
Ho voluto forex testere 4 per prendere screenshot quando il test manuale, almeno quando si chiude un commercio

 
Vladimir Makhnin #:

***
Scolds points
Volevo forex testere 4 per prendere screenshot quando si prova manualmente, almeno quando si chiude un trade

Un'immagine può essere allegata a un messaggio usando il pulsante Allega file o inserita in un messaggio usando il pulsante Immagine.
Motivazione: