Questions from Beginners MQL5 MT5 MetaTrader 5 - page 720

 
Vitalie Postolache:
Time and symbol, not just time. There cannot be more than one tick at a particular point in time for a single symbol.
It can. And yes, it can. Open the trades feed and see for yourself.
 
Alexey Kozitsyn:
It can. And it can. Open the trading feed and see for yourself.
First, to make sure we are talking about the same thing, what does a tick in forex mean to you?
 
Timofey Voroshilov:
who is interested in working on signals
Is this the right topic?
 
Vitalie Postolache:
Firstly, to make sure that we are talking about the same thing, what does ticks mean for you in forex?

I thought this was a conversation about FORTS because:

Yes, I am interested in using MQL5 with "exchange" execution".

Although, of course, I may be wrong...

And earlier the same person wrote:

Good afternoon!

Does it exist in MT5 to receive deals on all symbols opened in Market Watch in one Expert Advisor? I am interested exactly in deals (ticks) and not in changes of the market window.

Thank you.

Then we are probably talking about FORTS after all. And in this case we are talking about ticks that led to trades.
 
Alexey Kozitsyn:

I assumed there was talk of FORTS here, as..:

Although, of course, I could be wrong...

And i.e. earlier the same person wrote:

Then, most likely, it is still talking about FORTS. And in this case it's about the ticks that led to the trades.
Ah, then I didn't read it carefully, sorry.
 

Could you please tell me what the following entry means in the client terminal

Symbol EURUSD mapped to EURUSDmicro

This is my first time using micro accounts

 
Hello, please explain how to withdraw money if it is not shown in the account.
 
Rashid9821:
Hello, please explain how to withdraw money if it doesn't show in the account.
Maybe then try withdrawing from a demo account? Does it show there?
 

Why isn't anything being drawn?

//+------------------------------------------------------------------+
//|                                                         Test.mq5 |                                                                |
//+------------------------------------------------------------------+
#include <Canvas\Canvas.mqh>
//+------------------------------------------------------------------+
CCanvas     eee;           // the canvas object
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   uint clr=4294967295;

   eee.Create("name",1000,1000,COLOR_FORMAT_ARGB_RAW);
   eee.Erase(clr);
   eee.Update(true);
   Sleep(10000);
//---
   eee.Destroy();
  }
//+------------------------------------------------------------------+
 

Hello.

Please help.

Signal when indicator lines are crossed on the first bar.

The position is opened correctly on the first bar if the shift ma_shiftT = 0 and ma_shiftD = 0. If the shift ma_shiftT = -1 and ma_shiftD = 1, the position is opened on the third or fourth bar.

What should I do to open a position if it is crossed on the first bar?


input int      ma_shiftT=-1;
input int      ma_shiftD=1;
int iTEMAHandle;   // хэндл индикатора iTEMA
int iDEMAHandle;    // хэндл индикатора
double ma1Val[]; // динамические массивы для хранения численных значений  для каждого бара
double maVal[];  // 

//+------------------------------------------------------------------+
int OnInit()
  {
//---
m_symbol.Name(Symbol());  
//--- Получить хэндл индикатора iTEMA
iTEMAHandle=iTEMA(_Symbol,PERIOD_CURRENT,30,ma_shiftT,PRICE_CLOSE);;
//---Получить хэндл индикатора
iDEMAHandle=iDEMA(_Symbol,PERIOD_CURRENT,30,ma_shiftD,PRICE_CLOSE);;
  
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//--- освобождаем хэндлы индикаторов
   IndicatorRelease(iTEMAHandle);

   IndicatorRelease(iDEMAHandle);
   }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
  
  //--- массив значений индикатора
   ArraySetAsSeries(ma1Val,true);

//--- массив значений индикатора
   ArraySetAsSeries(maVal,true);
  
  if(CopyRates(_Symbol,_Period,0,5,mrate)<0)
     {
      Alert("Ошибка копирования исторических данных - ошибка:",GetLastError(),"!!");
      return;
     }
//====
  if(CopyBuffer(iTEMAHandle,0,0,5,ma1Val)<0)
     {
      Alert("Ошибка копирования буферов индикатора TEMA - номер ошибки:",GetLastError(),"!!");
      return;
     }
   if(CopyBuffer(iDEMAHandle,0,0,5,maVal)<0)
     {
      Alert("Ошибка копирования буферов индикатора DEMA - номер ошибки:",GetLastError());
      return;
     }

   bool Sell_Condition_3=(maVal[2]<=ma1Val[2]);
   bool Sell_Condition_4=(maVal[1]>ma1Val[1]);
  
   if(Sell_Condition_3 && Sell_Condition_4)
   {
   // открываю позицию SELL
   }
  }
Reason: