Fragen von Anfängern MQL5 MT5 MetaTrader 5 - Seite 917

 
Artyom Trishkin:

Ich danke Ihnen!

 
Vitaly Muzichenko:

if()-Konstruktionen verwenden

Ich danke Ihnen!

 
Kommentare, die sich nicht auf dieses Thema beziehen, wurden nach "Fragen von MQL4 MT4 MetaTrader 4 Anfängern" verschoben.
 

Guten Abend.

Können Sie mir sagen, ob es eine Option gibt, die Provisionen einbezieht, wenn Sie Ihr eigenes Symbol erstellen und einen EA damit testen? Wenn ja, wie?

 
ISL:

Sollten Sie bei der Erstellung Ihres eigenen Symbols und dem Testen eines EA mit diesem Symbol eine Provision erheben? Wenn ja, wie?

In welchem Metatrader erstellen Sie Symbole auf MT5?

 
Kommentare, die sich nicht auf dieses Thema beziehen, wurden nach "Fragen von MQL4 MT4 MetaTrader 4 Anfängern" verschoben.
 

Hallo! Ich habe diese Frage schon einmal gestellt, aber niemand hat geantwortet, ich werde versuchen, es genauer zu erklären...


//+------------------------------------------------------------------+
//|                                                         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:

Hallo! Ich habe diese Frage schon einmal gestellt, aber niemand hat geantwortet, ich werde versuchen, es genauer zu erklären...

 
ISL:

Können Sie mir sagen, ob es möglich ist, eine Provision zu erheben, wenn Sie Ihr eigenes Symbol erstellen und einen EA darauf testen?

Nein.

 
fxsaber:

Ich danke Ihnen! Ich dachte immer, dass ein Verweis auf Klassen ein Verweis auf eine Klasse ist. Aber hier ist es nur eine Erklärung... was hat das damit zu tun?

Grund der Beschwerde: