Hatalar, hatalar, sorular - sayfa 1110

 
barabashkakvn :
MetaEditor5 ile bir saat uğraştınız mı?
MT4'te işlem yapıyorum ve kodları iş yerindeki bilgisayarımla depolama yoluyla senkronize ediyorum. MetaEditor4'teki depolama benim için çalışıyor.
 
paladin800 :
MT4'te işlem yapıyorum ve kodları iş yerindeki bilgisayarımla depolama yoluyla senkronize ediyorum. MetaEditor4'teki depolama benim için çalışıyor.

MT5 ve MT4'te oturum açma bilgileriniz farklı mı?

 
barabashkakvn :

MT5 ve MT4'te oturum açma bilgileriniz farklı mı?

MT4'te, 5. forumda olduğu gibi kullanıcı adı ve şifreyi girdim. 4-ke'deki gibi bir kullanıcı adı ve şifre girmenize gerek yoktur .
 
barabashkakvn :

MT5 ve MT4'te oturum açma bilgileriniz farklı mı?

paladin800 :
MT4'te, 5. forumda olduğu gibi kullanıcı adı ve şifreyi girdim.
Bir mucize oldu! İlk önce MetaEditor4'e bir dosya eklemenin gerekli olduğu ortaya çıktı ve önce onu depodan çıkarmaya çalıştım.
 

Sınıf nesnesi neden küresel düzeyde oluşturulmuyor?

'CBaseClass' - tipsiz bildirim !Taslak.mq5 12 1


 #property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link        "http://www.mql5.com"
#property version    "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
CBaseClass BaseClass; 
//+------------------------------------------------------------------+
int OnInit ()
  {

   return ( INIT_SUCCEEDED );
  }

//+------------------------------------------------------------------+
void OnDeinit ( const int reason)
  {

  }
//+------------------------------------------------------------------+
void OnTick ()
  {

  }
//+------------------------------------------------------------------+
class CBaseClass
 {
   protected :
   
   public :
   CBaseClass() {};
   ~CBaseClass() {};
 };
 
silhouette :

Bu yüzden gerekli

 #property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link        "http://www.mql5.com"
#property version    "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
class CBaseClass;
CBaseClass BaseClass; 
//+------------------------------------------------------------------+
int OnInit ()
  {

   return ( INIT_SUCCEEDED );
  }

//+------------------------------------------------------------------+
void OnDeinit ( const int reason)
  {

  }
//+------------------------------------------------------------------+
void OnTick ()
  {

  }
//+------------------------------------------------------------------+
class CBaseClass
 {
   protected :
   
   public :
   CBaseClass() {};
   ~CBaseClass() {};
 };
 
TheXpert :

Bu yüzden gerekli

Daha doğrusu öyle mi? Onlar. bir sınıfın tanımı kesinlikle nesne oluşturmadan önce mi olmalıdır?

Teşekkür ederim.

 #property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link        "http://www.mql5.com"
#property version    "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
class CBaseClass
 {
   protected :
   
   public :
   CBaseClass() {};
   ~CBaseClass() {};
 };
CBaseClass BaseClass; 
//+------------------------------------------------------------------+
int OnInit ()
  {

   return ( INIT_SUCCEEDED );
  }

//+------------------------------------------------------------------+
void OnDeinit ( const int reason)
  {

  }
//+------------------------------------------------------------------+
void OnTick ()
  {

  }
//+------------------------------------------------------------------+
 
silhouette :

Eh, sınıf tanımını altta tutmak istiyorsanız çalışmak için yazdım.

siluet :

Daha doğrusu öyle mi? Onlar. bir sınıfın tanımı kesinlikle nesne oluşturmadan önce mi olmalıdır?

bir beyan varsa, açıklama herhangi bir yerde olabilir.
 
TheXpert :

Eh, sınıf tanımını altta tutmak istiyorsanız çalışmak için yazdım.

Bu durumda bir hata ile karşılaşılır

'CBaseClass' - tanımsız yapı !Taslak.mq5 on üç 1

 
İki grafik yapı için dört renk nasıl belirlenir? Renkleri ayarladım ve sonra sadece 2 tane alabilirim.


#property indicator_separate_window

#property indicator_buffers 10
#property indicator_plots 2                    
#property indicator_type1 DRAW_COLOR_CANDLES 
#property indicator_type2 DRAW_COLOR_CANDLES 



//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
        PlotIndexSetInteger(0,PLOT_LINE_COLOR,0, clrBlue);
        PlotIndexSetInteger(0,PLOT_LINE_COLOR,1, clrYellow);
       
        PlotIndexSetInteger(1,PLOT_LINE_COLOR,0, clrGreen);
        PlotIndexSetInteger(1,PLOT_LINE_COLOR,1, clrRed);
       
        Print("00 = " + PlotIndexGetInteger(0, PLOT_LINE_COLOR,0));
        Print("01 = " + PlotIndexGetInteger(0, PLOT_LINE_COLOR,1));
        Print("10 = " + PlotIndexGetInteger(1, PLOT_LINE_COLOR,0));
        Print("11 = " + PlotIndexGetInteger(1, PLOT_LINE_COLOR,1));
       
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const int begin,
                const double &price[])
  {
//---
  
//--- return value of prev_calculated for next call
   return(rates_total);
  }