Questions from Beginners MQL5 MT5 MetaTrader 5 - page 251

 
sergeev:
Then ask for the whole code.

Here is the expert where input double Hummer = 3 (Expert_AH_HM_RSI) would like toappear

But input double Hummer = 3 must belong to another file (acandlepatterns)

In this place:

//+------------------------------------------------------------------+
//| Checks formation of Hammer candlestick pattern                   |
//+------------------------------------------------------------------+
input double Hummer = 3;
bool CCandlePattern::CheckPatternHammer()
  {
//--- Hammer
   if((MidPoint(1)<CloseAvg(2))                                  && // down trend
      (MathMin(Open(1),Close(1))>(High(1)-(High(1)-Low(1))/Hummer)) && // body in upper 1/3
      (Close(1)<Close(2)) && (Open(1)<Open(2)))                     // body gap
      return(true);
//---
   return(false);
  }

Can someone help? :)

 
Hello! Please help me with this problem. I have written an assistant and attached it to a financial instrument - it seems to work, but no...: For myself, as a beginner, I indicated Alert in the code to see the course of action of the Expert Advisor. The problem is that the program finds the required signal, but does not send it to the dealing centre for execution. What should I do?
 
abeiks:

Here is the expert where input double Hummer = 3 (Expert_AH_HM_RSI) would like toappear

But input double Hummer = 3 must belong to another file (acandlepatterns)

To this location:


but the file acandlepatterns.mqh is not used in the posted EA

 
sergeev:

But the file acandlepatterns.mqh is not used in the EA

Maybe there's a mistake somewhere https://www.mql5.com/ru/code/317? I did everything as written.

Мастер MQL5 - Торговые сигналы свечных паттернов Hammer/Hanging Man + RSI
Мастер MQL5 - Торговые сигналы свечных паттернов Hammer/Hanging Man + RSI
  • votes: 10
  • 2011.03.18
  • MetaQuotes Software Corp.
  • www.mql5.com
Торговые сигналы свечных моделей "Hammer/Hanging Man" ("Молот"/"Повешенный") с подтверждением от индикатора RSI.
 
abeiks:

I did everything as written.

Maybe,

But you gave me the wrong files.

 
sergeev:

could be,

but you gave the wrong files.

\MQL5\Include\Expert\Signal\MySignals\

acandlepatterns__34

ach_hm_rsi


{\MQL5\Experts\

expert_ah_hm_rsi__3


What's wrong with these files? Are they correct? https://www.mql5.com/ru/code/317

 
abeiks:

I asked about the missing files, I don't really care about their correctness. it's up to you.

Now you've added another file.

Next time, be careful how you attach files to your post.

 
sergeev:

I asked about the missing files, I don't particularly care about their correctness. your business.

now you've added another file.

Next time be careful when attaching files to the post

My apologies, thought the third file didn't make sense to add an input variable.

 
abeiks:

My apologies, thought the third file didn't make sense to add an input variable.

And you deleted them again for some reason? :)
 
sergeev:
And why did they get deleted again? :)

Didn't delete them, don't know why they disappeared.

Reason: