오류, 버그, 질문 - 페이지 1110

 
barabashkakvn :
한 시간 동안 MetaEditor5를 엉망으로 만드셨습니까?
나는 MT4에서 거래하고 직장에 있는 내 컴퓨터와 저장소를 통해 코드를 동기화합니다. MetaEditor4의 스토리지가 저에게 적합합니다.
 
paladin800 :
나는 MT4에서 거래하고 직장에 있는 내 컴퓨터와 저장소를 통해 코드를 동기화합니다. MetaEditor4의 스토리지가 저에게 적합합니다.

MT5와 MT4에서 로그인이 다른가요?

 
barabashkakvn :

MT5와 MT4에서 로그인이 다른가요?

MT4에서는 5번째 포럼에 여기와 같이 로그인과 비밀번호를 입력했습니다. 4-ke에서와 같이 사용자 이름과 비밀번호를 입력할 필요가 없습니다 .
 
barabashkakvn :

MT5와 MT4에서 로그인이 다른가요?

팔라딘800 :
MT4에서는 5번째 포럼에 여기와 같이 로그인과 비밀번호를 입력했습니다.
기적이 일어났다! 먼저 MetaEditor4에 파일을 추가해야 하는 것으로 밝혀졌고, 먼저 저장소에서 파일을 추출해 보았습니다.
 

클래스 개체 가 전역 수준에서 생성되지 않는 이유는 무엇입니까?

'CBaseClass' - 유형이 없는 선언 !Draft.mq5 12 하나


 #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 :

그래서 필요하다

 #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 :

그래서 필요하다

오히려 그렇게? 저것들. 클래스에 대한 설명은 객체 생성 이전에 엄격하게 이루어져야 합니까?

고맙습니다.

 #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 :

글쎄, 나는 당신이 맨 아래에 클래스 정의를 유지하고 싶다면 일하기 위해 썼습니다.

실루엣 :

오히려 그렇게? 저것들. 클래스에 대한 설명은 객체 생성 이전에 엄격하게 이루어져야 합니까?

선언이 있는 경우 설명은 어디에나 있을 수 있습니다.
 
TheXpert :

글쎄, 나는 당신이 맨 아래에 클래스 정의를 유지하고 싶다면 일하기 위해 썼습니다.

이 경우 오류가 발생합니다.

'CBaseClass' - 정의되지 않은 구조체 !Draft.mq5 열셋 하나

 
두 개의 그래픽 구성 에 대해 네 가지 색상을 지정하는 방법은 무엇입니까? 색상을 설정하면 2개만 얻을 수 있습니다.


#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);
  }