Questions from a "dummy" - page 230

 

MigVRN: Вот тут говорят что работает. 

So try duplicating your question directly there. There are many more interested parties there.
 
Yedelkin:
So try duplicating your question directly there. There are many more interested parties there.
It's a reasonable suggestion! When I asked this question I thought it was closer to the Dummies' Questions than to the OpenCL: Internal Tests of Implementation in MQL5. :). Let's wait - maybe someone will suggest a solution to this problem...
 
MigVRN: Reasonable suggestion! When I asked this question I thought it was closer to the Dummies' Questions thread than to the OpenCL: Internal Tests of Implementation in MQL5 thread. :). Let's wait and see if someone will suggest a solution to this problem...
The thing is that some forum participants are subscribed to updates of certain topics and they don't look through all threads in a row. So you can get a response to your problem with a better chance of success if you post a specific question in a topic thread.
 

My aim is to find out where I should withdraw my first deposit, on which brokerage company I would like to start from a simple one, directly on MT5, because I have not mastered the option to copy the signal to MT4 through a file, I have been working for 3 days and it has been empty so far.

I looked at a list on my sitehttp://www.brokersearch.ru and I'm interested in opinions of the respected gentlemen. They are: MQL5, MQL5 for those who do not want to work with scalping and spread betting, MQL5 for those who do not want to work with scalping and spreading.

For me the most known is Roboforex, but they say different things about it.)

I am morally ready to experiment with amounts up to $500, without any remorse. Even many times ready (3-5), until I do not understand that for sure, or it's all awfully clever casino (that is a scam), or that's right, you can get income on it.

If this forum can not talk about this, then please let me know in private, or on e-mail alex.bondar1969@gmail.com, I would be very grateful)))

I understand that the first deposit is intended exclusively for the experience of plum, but I do not want this plum to be because of a brazen scam, it can discourage ahota, as to trading in general, and to algotrading in particular.

I also wonder what kind of account is better to open for a beginner - ECN or with fixed spread?

Поиск брокера. Рейтинг форекс брокеров. Новости, бонусы, конкурсы.
  • www.brokersearch.ru
BrokerSearch.ru - Форекс брокеры и дилинговые центры. Новости, акции, бонусы, конкурсы. Форум трейдеров. Поиск брокера.
 

Hi all!!! This is the day I can not understand how to output the text information in the Expert Advisor, that is, I need to output the spread on the currency pair, as well as the difference between the moving averages, please advise how to do it? In mql4 it looks like this:

//+------------------------------------------------------------------+
//|                                                  my_fist_sov.mq4 |
//|           Начало создания 26.12.2012, test |
//|                                        http://                   |
//+------------------------------------------------------------------+
#property copyright "test"
#property link      "http://www.my_expert.ru"

//-- объявляем переменные
string Obj_Name ="Spread"; // 
string Obj_Name2 ="EMA_8";
string Obj_Name3 ="EMA_40";
string Obj_Name4 ="Raznica";
int Period_MA_1 = 8;
int Period_MA_2 = 40;

//--- объявляем константы



//--- ввод параметров EUR_GBR





int init()
   {
    string Text = MarketInfo (Symbol(), MODE_SPREAD);
    
     if(ObjectFind(Obj_Name)==-1)                    // Если объекта нет..
      {
      ObjectCreate (Obj_Name,OBJ_LABEL,0,0,0);      // Создаём новый объект 
      ObjectSet    (Obj_Name,OBJPROP_CORNER,    1);// Угол привязки            
      ObjectSet    (Obj_Name,OBJPROP_XDISTANCE,15);// Координата Х
      ObjectSet    (Obj_Name,OBJPROP_YDISTANCE,20);// Координата Y
      }
   ObjectSetText(Obj_Name,"Спред = "+Text,10,"Times New Roman",Red);// Текстовое описание объекта
  return;
  }
  
int start ()    
    {
    string Text2 = iMA(NULL,0,Period_MA_1,0,MODE_EMA,PRICE_CLOSE,0); // МА_1
     if(ObjectFind(Obj_Name2)==-1)                    // Если объекта нет..
      {
      ObjectCreate (Obj_Name2,OBJ_LABEL,0,0,0);      // Создаём новый объект 
      ObjectSet    (Obj_Name2,OBJPROP_CORNER,    1);// Угол привязки            
      ObjectSet    (Obj_Name2,OBJPROP_XDISTANCE,15);// Координата Х
      ObjectSet    (Obj_Name2,OBJPROP_YDISTANCE,35);// Координата Y
      }
   ObjectSetText(Obj_Name2,"Экспоциональная скользящая средняя = "+Text2,10,"Times New Roman",Red);// Текстовое описание объекта
   
   string Text3 =iMA(NULL,0,Period_MA_2,0,MODE_EMA,PRICE_CLOSE,0); // МА_2
     if(ObjectFind(Obj_Name3)==-1)                    // Если объекта нет..
      {
      ObjectCreate (Obj_Name3,OBJ_LABEL,0,0,0);      // Создаём новый объект 
      ObjectSet    (Obj_Name3,OBJPROP_CORNER,    1);// Угол привязки            
      ObjectSet    (Obj_Name3,OBJPROP_XDISTANCE,15);// Координата Х
      ObjectSet    (Obj_Name3,OBJPROP_YDISTANCE,50);// Координата Y
      }
   ObjectSetText(Obj_Name3,"Экспоциональная скользящая средняя = "+Text3,10,"Times New Roman",Blue);// Текстовое описание объекта
   
   string Text4 =iMA(NULL,0,Period_MA_2,0,MODE_EMA,PRICE_CLOSE,0)- iMA(NULL,0,Period_MA_1,0,MODE_EMA,PRICE_CLOSE,0); // МА_2
     if(ObjectFind(Obj_Name4)==-1)                    // Если объекта нет..
      {
      ObjectCreate (Obj_Name4,OBJ_LABEL,0,0,0);      // Создаём новый объект 
      ObjectSet    (Obj_Name4,OBJPROP_CORNER,    1);// Угол привязки            
      ObjectSet    (Obj_Name4,OBJPROP_XDISTANCE,15);// Координата Х
      ObjectSet    (Obj_Name4,OBJPROP_YDISTANCE,70);// Координата Y
      }
   ObjectSetText(Obj_Name4,"До пересечения скользящих осталось = "+Text4+ " пунктов",10,"Times New Roman",Red);// Текстовое описание объекта
   return;

   }
//
int deinit()
   {
   ObjectDelete(Obj_Name);                            // Удаление объекта при выходе
   ObjectDelete(Obj_Name2);
   ObjectDelete(Obj_Name3);
   ObjectDelete(Obj_Name4);
   return;
   }

How to do it in mql5, because even simple text does not show:

//+------------------------------------------------------------------+
//|                                                     my_first.mq5 |
//|                                                    test |
//|                                              http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "test"
#property link      "http://www.mql5.com"
#property version   "1.00"
//--- начало ввода параметров
input int      EMA_fast=8;
input int      EMA_slow=40;
//---конец ввода параметров

//--- начало объявление переменных
string txt_name ="Spread";
//--- окончание объявление переменных
datetime txt;
#define  UP          "\x0431"

//---
int OnInit()
 {
   {
     string txt_name="Спред по валютной паре составляет: ";
   if(ObjectFind(0,label_name)<0)
  
      Print("Object ",txt_name," not found. Error code = ",GetLastError());
      //--- создадим объект Label
      ObjectCreate(0,txt_name,OBJ_TEXT,0,0,0);           
      //--- установим координату X
      ObjectSetInteger(0,txt_name,OBJPROP_XDISTANCE,200);
      //--- установим координату Y
      ObjectSetInteger(0,txt_name,OBJPROP_YDISTANCE,300);
      //--- зададим цвет текста
      ObjectSetInteger(0,txt_name,OBJPROP_COLOR,clrWhite);
      //--- установим текст для объекта Label
      ObjectSetString(0,txt_name,OBJPROP_TEXT,UP);
      //--- установим шрифт надписи
      ObjectSetString(0,txt_name,OBJPROP_FONT,"Wingdings");
      //--- установим размер шрифта
      ObjectSetInteger(0,txt_name,OBJPROP_FONTSIZE,10);
      //--- повернем на 45 градусов по часовой стрелке
      ObjectSetDouble(0,txt_name,OBJPROP_ANGLE,-45);
      //--- запретим выделение объекта мышкой
      ObjectSetInteger(0,txt_name,OBJPROP_SELECTABLE,false);
      //--- отрисуем на графике
      ChartRedraw(0);          
   }
 return (0);
 }


//---
int OnDeinit()
{
ObjectDelete(0,txt_name);                            // Удаление объекта при выходе
   
 return(0);
}

//--- 
int OnTick ()
 {
   
 {
//---
                                        
    }
  return (0);
 }

I don't know much about mql4 and mql5/ Thank you



 
brex:

Hi all!!! This is the day I can not understand how to output the text information in the Expert Advisor, that is, I need to output the spread on the currency pair, as well as the difference between the moving averages, please advise how to do it? In mql4 it looks like this:

How to do it in mql5, because even simple text does not show:

I don't know mql4 and mql5 very well.



Wow, it is so complicated.

The simple text is shown with the following commands

Print and Comment

The difference between these commands is taken from the indicator handle

https://www.mql5.com/ru/docs/indicators/ima

The spread is taken from SymbolInfoInteger, but the information will be shown as number of points, like - 3, not 0.0003

Документация по MQL5: Технические индикаторы / iMA
Документация по MQL5: Технические индикаторы / iMA
  • www.mql5.com
Технические индикаторы / iMA - Документация по MQL5
 

I don't know where to ask this question, so I'll ask it in the usual thread

Can I test several indicators simultaneously or should I combine them into a custom one and run it?

For example, I want to see how Fractals+Bollinger Channels behave

 
lazarev-d-m:

I don't know where to ask this question, so I'll ask it in the usual thread

Can I test several indicators simultaneously or should I combine them into a custom one and run it?

For example, I want to see how Fractals+Bollinger Channels behave

Run in tester:

int      handle_BB;
int      handle_FR;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
      handle_BB=iBands(NULL,0,21,0,2,PRICE_MEDIAN);
      handle_FR=iFractals(NULL,0);
   
//---
   return(0);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   
  }
 
DC2008:

run in the tester:

Well yes, not difficult in principle, just a means to test 1 indicator, but your suggestion is pretty straightforward, thank you
 

Hello gentlemen. I have, as usual, quite probably a silly question... Just recently, it wasn't even a question, but now, after talking with a very experienced uncle, confusion arose (((

MTS (mechanical trading system) and ATC (algorithmic trading system) are very different things?

It has been argued (by an experienced uncle) that MTS is a "great illusion" and algorithmic trading is cool. This is after a slight moral abuse, to me as a beginner, who turns out not to know the fundamental differences between MTS and ATS... I'm not offended, but I don't understand what the difference is(((

Please explain in 2 words what are the fundamental differences.

Pesa: In particular uncle said that HFT is algorithmic trading but it is not MTS...