Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1699

 
MakarFX #:

Why double? There's IntegerToString(), if you really need it as a function. Or you can just use (string)OrdersTotal()

Документация по MQL5: Преобразование данных / IntegerToString
Документация по MQL5: Преобразование данных / IntegerToString
  • www.mql5.com
IntegerToString - Преобразование данных - Справочник MQL5 - Справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Artyom Trishkin #:

Why double? There's IntegerToString(), if you really need it as a function. Or you can just use (string)OrdersTotal().

I was just giving you the gist of it.

EVGENII SHELIPOV # : Can you tell me how I can output a variable or a value of the function, for example, OrdersTotal() on the chart????
 
MakarFX #:

Thank you

 
MakarFX #:
Show the tickCount condition
// Определить количество тиков по суммарному тиковому объёму баров диапазона
   long tickVolumes[];
   int tickVolumeCount=CopyTickVolume(m_symbol,PERIOD_M1,poi,poifin-1,tickVolumes);
   if(tickVolumeCount<=0)
      return;
   long tickVolumesTotal=Sum(tickVolumes);     
// Скопировать тики, нужны только совершённые сделки, нужна информаци только по Last + объём + время тика
   MqlTick ticks[];
   int tickCount=CopyTicks(m_symbol,ticks,COPY_TICKS_TRADE,poi*1000,(uint)tickVolumesTotal);
// Нет тиков - нет гистограммы
   if(tickCount<=0)
     {
      return;
     }


As a result, when the Moscow Exchange turns on the market, the tickCount variable records not just ticks, but all trades that are executed in the market, puttable, strip of deals, whatever, then the code there determines what kind of a trade, buy or sell, and what volume this trade had, based on all information cluster analysis is built and the necessary volumes are displayed near the price, etc.



The essence of the fable is to attach to tickCount variable and every 100 trades, the variable will be adjustable and look how many deals and buys it was, calculate the overshoot percentage and if the overshoot is higher than the value I indicate, the robot will already know the dynamics of making an entry using momentarily search of stack density through the three sigma logic + volume correlation in this stack by Pearson method.

It's that short.

 
Konstantin Seredkin #:


As a result, when the Moscow Exchange turns on the market, the tickCount variable records not just ticks, but all trades that are executed in the market, puttable, strip of deals, whatever, then the code there determines what kind of a trade, buy or sell, and what volume this trade had, based on all information cluster analysis is built and the necessary volumes are displayed near the price, etc.



The essence of the fable is to attach to tickCount variable and every 100 trades, the variable will be adjustable and look how many deals and buys it was, calculate the overshoot percentage and if the overshoot is higher than the value I indicate, the robot will already know the dynamics of making an entry using momentarily search of stack density with three sigma logic + volume correlation in this stack by Pearson method.

It's so short.

I'm not good at mql5, but I would

//--- global parameters
int tickCount,prev_tickCount;
//--- tick function                                             |
   tickCount=CopyTicks(m_symbol,ticks,COPY_TICKS_TRADE,poi*1000,(uint)tickVolumesTotal);
   if(prev_tickCount!=tickCount)
     {
      KillCount+=(tickCount-prev_tickCount);
      if(KillCount>=100) KillCount=KillCount-100;
      prev_tickCount=tickCount;
     }
 
MakarFX #:

I'm not good at mql5, but I would

two times already written-referenced)

https://www.mql5.com/ru/forum/160683/page1698#comment_25500114

Любые вопросы новичков по MQL4 и MQL5, помощь и обсуждение по алгоритмам и кодам
Любые вопросы новичков по MQL4 и MQL5, помощь и обсуждение по алгоритмам и кодам
  • 2021.10.28
  • www.mql5.com
В этой ветке я хочу начать свою помощь тем, кто действительно хочет разобраться и научиться программированию на новом MQL4 и желает легко перейти н...
 
GOOD AFTERNOON ONCE AGAIN. I found out that my main account DanilaMactep was deleted. HOW CAN I KNOW THE REASON FOR DELETION AND WHERE CAN I WRITE A REQUEST FOR REINSTATEMENT? I HAVE ALWAYS COMMUNICATED ACCURATELY AND DID NOT INSULT ANYONE. I HAVE ALWAYS COMMUNICATED IN A POLITE MANNER AND I HAVE NOT BEEN RUDE TO ANYBODY. I COULD NOT HAVE VIOLATED FINANCIAL RULES AS I DEPOSITED MY ACCOUNT BACK IN 2014 AND I HAVE NOT MADE ANY OTHER TRANSACTIONS, I.E. I COULD NOT HAVE ANY FRAUDULENT TRANSACTIONS.
 
Super_good #:
GOOD AFTERNOON ONCE AGAIN. I found out that my main account DanilaMactep was deleted. HOW CAN I KNOW THE REASON FOR DELETION AND WHERE CAN I WRITE A REQUEST FOR RESTORATION? I HAVE ALWAYS COMMUNICATED ACCURATELY AND DID NOT INSULT ANYONE. I HAVE ALWAYS COMMUNICATED IN A POLITE MANNER AND I HAVE NOT BEEN RUDE TO ANYBODY. I COULD NOT HAVE VIOLATED FINANCIAL RULES AS I DEPOSITED MY ACCOUNT BACK IN 2014 AND I HAVE NOT MADE ANY OTHER TRANSACTIONS, I.E. I COULD NOT HAVE ANY FRAUDULENT TRANSACTIONS.

I think you're there.

Screenshot 2021-10-29 094058

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

1.

Screenshot 2021-10-29 094814

2.

Screenshot 2021-10-29 094954

 
Super_good #:
GOOD AFTERNOON ONCE AGAIN. I found out that my main account DanilaMactep was deleted. HOW CAN I KNOW THE REASON FOR DELETION AND WHERE CAN I WRITE A REQUEST FOR REINSTATEMENT? I HAVE ALWAYS COMMUNICATED ACCURATELY AND DID NOT INSULT ANYONE. I HAVE ALWAYS COMMUNICATED IN A CIVILISED WAY AND I HAVE NOT BEEN RUDE TO ANYBODY. I COULD NOT BREAK FINANCIAL RULES BECAUSE I DEPOSITED MY ACCOUNT HERE IN 2014 AND I HAVE NOT PERFORMED ANY OTHER TRANSACTIONS, I.E. I HAVE NOT PERFORMED ANY FRAUDULENT TRANSACTIONS.
Already restored)
 
Taras Slobodyanik #:

two times already written-referenced)

https://www.mql5.com/ru/forum/160683/page1698#comment_25500114

tickCount counts trades and if there was more than 1 trade on the tick, "tickCount%100" may not be equal to "0".