MQL4 no history data in short periods of time

 
Hello, 

I am creating a trading robot in MT4, part of it works with resistance and support zones:

iHigh(_Symbol, PERIOD_M1, 0); //Example

The problem is that by using such a small time period, the broker simply does not have enough historical data, is there any way to solve this problem? Thanks.

 
  1. On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
              Download history in MQL4 EA - MQL4 programming forum - Page 3 #26.4 (2019)

  2. On MT4: if you don't have any history, here's how you can get all available from your broker.

    1. Most brokers only have 32 or 65K bars of history per timeframe. That's 45 days of M1, 2.5 years on M15, etc.

    2. Quickly DL all available history from your broker: Problem loading historical data - MQL4 programming forum (2010)

    3. Is there any way to load programmatically entire history (of a Symbol and a Period) from server? - MQL4 programming forum #8 (2020) MT5 - Multi-Currency Indicator in Tester - Technical Indicators - MQL5 programming forum #3 (2018)

    Otherwise, you will have to download history from elsewhere. MT4 history: How to Start with Metatrader 5 - General - MQL5 programming forum - Page 94 #932 (2017)

 
William Roeder #:
  1. On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
              Download history in MQL4 EA - MQL4 programming forum - Page 3 #26.4 (2019)

  2. On MT4: if you don't have any history, here's how you can get all available from your broker.

    1. Most brokers only have 32 or 65K bars of history per timeframe. That's 45 days of M1, 2.5 years on M15, etc.

    2. Quickly DL all available history from your broker: Problem loading historical data - MQL4 programming forum (2010)

    3. Is there any way to load programmatically entire history (of a Symbol and a Period) from server? - MQL4 programming forum #8 (2020) MT5 - Multi-Currency Indicator in Tester - Technical Indicators - MQL5 programming forum #3 (2018)

    Otherwise, you will have to download history from elsewhere. MT4 history: How to Start with Metatrader 5 - General - MQL5 programming forum - Page 94 #932 (2017)

Thank you very much!