Questions from Beginners MQL5 MT5 MetaTrader 5 - page 253

 
igalx:
Is it possible to download charts for technical analysis, - indexes S & P 500 Futures Chart, TA 25 Chart, and S & P 500 Chart if it is possible can tell you how to do it, maybe there is an explanation of how to download!
Thank you in advance.
In the terminal you can view the charts of the instrument, which are provided by your broker (dealing centre). You should look in the "Market Watch" window by right-clicking and selecting "Symbols...". If you are not provided with indexes, you will have to look for a broker (dealing centre) which provides such indexes.
 
barabashkakvn:
You can view the tool charts in the terminal, which are provided by your broker (dealing centre). You should look in the "Market Watch" window by right-clicking and selecting "Symbols ...". If you do not receive them, you will have to look for a broker (dealing centre) which provides them.

I cannot find such a broker, can you advise me a technical analysis program that allows me to download the indices I am interested in (can be in real time) or a broker.

Maybe there is an opportunity to download these indices MT-4 or MT-5. I'm just beginning to try to do technical analysis, I'd love to hear expert advice on how to cope with my task.

I thank you in advance for your help.

 
igalx:

I cannot find such a broker, can you advise me a technical analysis program that allows me to download the indices I am interested in (can be in real time) or a broker.

Maybe there is an opportunity to download these indices MT-4 or MT-5. I just started to try to do technical analysis and would like to get expert advice on how to do this.

I am grateful in advance for your help.

Start with MT4

The first available topic https://www.mql5.com/ru/forum/142393

If you do not understand something, ask on the MT4 forum, they will tell you.

I don't think so.

загрузить внешние котировки из файла - как? - MQL4 форум
  • www.mql5.com
загрузить внешние котировки из файла - как? - MQL4 форум
 
Please, tell me where to look for the reason why when trying to debug (whether it's an Expert Advisor or a script) in the table of observed expressions on the right side of the Tools/Debug tab, in the "Value" column, for any expression appears: "Expression could not be evaluated"?View of the debugging window
 

There is no debugging in MT4... wait for the developers to do it

 
#property copyright "#Copyright © #"
#property link      "#http://www.#"
#property indicator_separate_window

//+------------------------------------------------------------------+
void init()
  {
  
  }
//+------------------------------------------------------------------+
int start()
  {
   
   int counted_bars=IndicatorCounted();
   if(counted_bars<0) return(-1);
   //if(counted_bars>0) counted_bars--;
   int limit=Bars-counted_bars;
   if(counted_bars==0) limit--;

   for(int i=limit;i>=0;i--)
     {
         
         datetime bod=Time[i]-Time[i] % 86400;           //начало дня
         int iBod = iBarShift(Symbol(),PERIOD_M1,bod);   //индекс первого бара М1
         int iNow=iBarShift(Symbol(),PERIOD_M1,Time[i]); //индекс текущуго бара M1
         
         datetime dt=iTime(Symbol(),PERIOD_M1,iBod);     //время первого бара М1
         datetime dt2=iTime(Symbol(),PERIOD_M1,iNow);    //время текущуго бара M1
         DebugBreak();
         
         
     }
   return(0);
  
  }
//+------------------------------------------------------------------+  


Can you tell me why the indices are the same in iBarShift or how to do it correctly(Get the data of the smaller timeframe on the older one).Thanks.

 
yuran007:


Can you tell me why the indices are the same in iBarShift or how to do it correctly(Get the data of the smaller timeframe on the older one).Thanks.

In the MetaEditor handbook, look at the "Organizing Data Access" section. But if you really need an indicator, take into account that Sleep() does not work in indicators.
 
barabashkakvn:
In the MetaEditor handbook, look up "Organising data access". But if you really need an indicator, you should consider that Sleep() does not work in indicators.
That is,"Since mql5-program can access data by any symbol and timeframe, there is a probability that the data of the required timeframe has not yet been generated in the terminal, or the required price data are not synchronized with the trade server. In this case, the waiting time of data readiness is difficult to predict." and Sleep() does not work, the variant with the Timer event and writing of Expert Advisor to a file and reading of data in the indicator remains unavailable? Or there is a simpler way. What do you recommend?
 
yuran007:
That is,"Since an mql5 program can access data for any symbol and timeframe, there is a possibility that the data of the required timeseries have not yet been formed in the terminal, or the required price data are not synchronized with the trade server. In this case, the waiting time of data readiness is difficult to predict." and Sleep() does not work, the variant with the Timer event and writing of Expert Advisor to a file and reading of data in the indicator remains unavailable? Or there is a simpler way. What do you recommend?
If you need to receive data in the indicator from other symbols or from other periods (different from the current one), the timer event is a good option.
In the timer you send a request for data and check the result. When the data is ready and loaded you set the flag (bool variable) to true in the timer. After this you can use the data in the indicator in OnCalculate.
 
barabashkakvn:
If you need to get data in an indicator from other instruments or from other periods (other than the current one), the timer is a good option.
In the timer you send a request for data and check the result. When the data is ready and loaded you set the flag (bool variable) to true in the timer. After that you can use this data in the indicator in OnCalculate.
Thanks