Пишу индикаторы на заказ
Быстро Недорого ( option )
Индикатор для БО
_ Winrate более 70% _

MQL4 Сложный советник с многими настройками

Тема в разделе "Программирование MQL4", создана пользователем mql4prog, 26 май 2024.

  1. mql4prog . Пользователь

    Сообщения:
    2
    Симпатии:
    0
    Буду учиться програмированию и ждать советов
     
  2. mql4prog . Пользователь

    Сообщения:
    2
    Симпатии:
    0
    PHP:
    //+------------------------------------------------------------------+
    //|                                                    sOVS 33.mq4 |
    //|                        Copyright 2021, MetaQuotes Software Corp. |
    //|                                             https://www.mql5.com |
    //+------------------------------------------------------------------+
    #property copyright "Copyright 2021, MetaQuotes Software Corp."
    #property link      "https://www.mql5.com"
    #property version   "1.00"
    #property strict
    extern datetime firstday D'01.01.2004';
    extern datetime secondday D'01.01.2004';
    extern int chas 5;
    extern int minuta 5;
    extern int secunda 5;
    extern int nbar 5;
    //+------------------------------------------------------------------+
    //|                                                                  |
    //+------------------------------------------------------------------+
    class Date
      
    {
    private:
       
    int               hour;
       
    int               min;
       
    int               sec;
       
    int               year;
       
    int               month;
       
    int               day;
       
    datetime          timecurent;
    public:
       
    void              Date();
       
    bool               ThisUhr(int hour);
       
    bool              Dateperiod(datetime begindatetime end);
      };

    //+------------------------------------------------------------------+
    //|                                                                  |
    //+------------------------------------------------------------------+
    Date::Date(void)
      {
       
    MqlDateTime mdt;
       
    datetime t=TimeCurrent(mdt);
       
    this.year mdt.year;
       
    this.month=mdt.mon;
       
    this.day=mdt.day;
       
    this.hour=mdt.hour;
       
    this.min=mdt.min;
       
    this.sec=mdt.sec;
      };
    //+------------------------------------------------------------------+
    //|                                                                  |
    //+------------------------------------------------------------------+
    bool Date::ThisUhr(int our)
      {
       
    bool this_uhr false;
       if(
    this.hour==our)
          
    this_uhr =true;
       else
          
    this_uhr=false;
       return(
    this_uhr);
      }
    //+------------------------------------------------------------------+
    //|                                                                  |
    //+------------------------------------------------------------------+
    bool Date::Dateperiod(datetime begin,datetime end)
      {
       
    bool this_period false;
      
       return(
    this_period);
      }
     
    Date *myObject;
    //+------------------------------------------------------------------+
    //| Expert initialization function                                   |
    //+------------------------------------------------------------------+
    int OnInit()
      {
    //---

    //---
       
    return(INIT_SUCCEEDED);
      }
    //+------------------------------------------------------------------+
    //| Expert deinitialization function                                 |
    //+------------------------------------------------------------------+
    void OnDeinit(const int reason)
      {
    //---

      
    }
    //+------------------------------------------------------------------+
    //| Expert tick function                                             |
    //+------------------------------------------------------------------+
    void OnTick()
      {
      }
    //+------------------------------------------------------------------+
    В интернете нашел подскажите как из Date:: Date() передать значение t в bool Date::Dateperiod(datetime begin,datetime end)?
     
  3. Crystal . Пользователь

    Сообщения:
    7
    Симпатии:
    0
    какие еще есть советники?
     
Загрузка...