초보자의 질문 MQL5 MT5 MetaTrader 5 - 페이지 917

 
Artyom Trishkin :

고맙습니다!

 
Vitaly Muzichenko :

if() 구문 사용

감사하다!

 
이 주제와 관련이 없는 댓글은 " MQL4 MT4 MetaTrader 4 초보자의 질문 "으로 이동되었습니다.
 

좋은 저녁이에요.

자신만의 심볼을 만들고 그에 대한 어드바이저를 테스트할 때 커미션을 포함할 수 있는지 알려주실 수 있습니까? 그렇다면 어떻게?

 
ISL :

자신만의 심볼을 만들고 그에 대한 어드바이저를 테스트할 때 커미션을 포함하시겠습니까? 그렇다면 어떻게?

MT5에서 기호를 만들 때 어떤 메타 트레이더를 사용합니까?

 
이 주제와 관련이 없는 댓글은 " MQL4 MT4 MetaTrader 4 초보자의 질문 "으로 이동되었습니다.
 

안녕하세요! 이 질문은 이미 드렸는데 아무도 답변을 안해주셔서 좀 더 자세히 설명드리도록 하겠습니다..


 //+------------------------------------------------------------------+
//|                                                         test.mq5 |
//|                        Copyright 2018, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018, MetaQuotes Software Corp."
#property link        "https://www.mql5.com"
#property version    "1.00"

class MyClass                                       1 . СОЗДАЮ КЛАСС 
  {
private :

public :
                     MyClass();
                    ~MyClass();
   void                MyFunction();               2.В КЛАССЕ ОБЬЯВЛЯЮ СВОЮ ФУНКЦИЮ
  };
MyClass::MyClass()
  {
  }
MyClass::~MyClass()
  {
  }
void MyClass::MyFunction()                     
  {
  }

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_plots    1
//--- plot Label1
#property indicator_label1    "Label1"
#property indicator_type1    DRAW_LINE
#property indicator_color1    clrRed
#property indicator_style1    STYLE_SOLID
#property indicator_width1    1
//--- input parameters
input int       Input1= 1 ;
//--- indicator buffers
double          Label1Buffer[];
MyClass *PointMyClass;                            3. СОЗДАЮ УКАЗАТЕЛЬ НА СВОЙ КЛАСС          
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit ()
  {
//--- indicator buffers mapping
   SetIndexBuffer ( 0 ,Label1Buffer, INDICATOR_DATA );
//---
   return ( INIT_SUCCEEDED );
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate ( const int rates_total,
                 const int prev_calculated,
                 const datetime &time[],
                 const double &open[],
                 const double &high[],
                 const double &low[],
                 const double &close[],
                 const long &tick_volume[],
                 const long &volume[],
                 const int &spread[])
  {
//---
   PointMyClass.MyFunction();                         4. Здесь пытаюсь обратиться к своей функции - выдает сообщение - invalid pointer access in .. \
                                                    
                             
//--- return value of prev_calculated for next call
   return (rates_total);
  }
//+------------------------------------------------------------------+
Помогите разобраться
 
Tango_X :

안녕하세요! 이 질문은 이미 드렸는데 아무도 답변을 안해주셔서 좀 더 자세히 설명하려고 합니다..

 
ISL :

자신만의 심볼을 만들고 그에 대한 어드바이저를 테스트할 때 커미션을 포함할 수 있는지 알려주실 수 있습니까?

금지되어 있습니다.

 
fxsaber :

고맙습니다! 저는 항상 클래스에 대한 포인터를 통해 클래스에 액세스한다고 생각했습니다. 그리고 여기 그냥 공지입니다 ..이유는 무엇입니까?

사유: