Indicators: BrainTrend2SigAlert

 

BrainTrend2SigAlert:

BrainTrend2Sig semaphore signal indicator features alerts, emails and push notifications.

Fig.1. BrainTrend2SigAlert indicator on the chart

Author: Nikolay Kositsin

 
Hardly, it's the same! There are only alerts and that's all!
 

how to connect to it from my EA?

if possible example code!!!

 
Boris Egorov:

how to connect to it from my EA?

if possible example code!!!

Can't you use the search? https://www.mql5.com/ru/search#!keyword=BrainTrend2&page=2

Поиск - MQL5.community
Поиск - MQL5.community
  • www.mql5.com
Поиск выполняется с учетом морфологии и без учета регистра. Все буквы, независимо от того, как они введены, будут рассматриваться как строчные. По умолчанию наш поиск показывает страницы...
 
Nikolay Kositsin:

Why don't you do a search? https://www.mql5.com/ru/search#!keyword=BrainTrend2&page=2.

If you answer, answer in substance.

I am familiar with the search, and moreover I have done it, if you point to the search, point to a specific answer, and not to the hell knows where, like showing your "cleverness".

And I didn't just ask the question.

The point is that the existing answers are not correct, and your "poking" has no answer at all,

either they are related to MT4 or they cause memory leaks .....

and so that there are no claims against me, I'm posting my code for the previous indicator, but without the alert.

//0 - SellBuffer 
//1 - BuyBuffer 
double indBrainTrend2Sig(string symbol     =NULL,
                         int    tf         =PERIOD_M5,
                         int    ATR_Period =7,
                         string sBuffer    ="SellBuffer",
                         int    iShift     =0)
{
  if (sBuffer!="SellBuffer" && sBuffer!="BuyBuffer") 
  { 
     Alert("For indBrainTrend2Sig sBuffer must be equal to SellBuffer or BuyBuffer".); 
     Print("No known buffer for indBrainTrend2Sig!");
     return(-1);
  }
  int iBuffer=0;
  
  if (sBuffer=="SellBuffer") {iBuffer=0;}
  if (sBuffer=="BuyBuffer" ) {iBuffer=1;}  

  ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
  int handle=iCustom(symbol,timeframe,"BrainTrend2Sig",ATR_Period,iBuffer,iShift);  //Examples\\BrainTrend2Sig
  if(handle==INVALID_HANDLE)  
  {
     Print("Object indBrainTrend2Sig not created: Error ",GetLastError());
     return(-1);
  }
  else
  {
     return( CopyBufferMQL4(handle,iBuffer,iShift) ); //return( CopyBuffer(handle,iBuffer,iShift,iShift,1,buf) );
  }
}//void

//call 
//indBrainTrend2Sig(Symbol(),PERIOD_H1,7, "BuyBuffer",0);

I would like something similar for the indicator with BrainTrend2SigAlert alert.

 
Boris Egorov:

If you're answering, answer in substance.

I am familiar with the search, and moreover I have done it, if you point to the search, then point to a specific answer and not to the hell knows where, like showing your "cleverness".

And I didn't ask the question for nothing.

The point is that the existing answers are wrong, and your "poking" has no answer at all,

either they are related to MT4 or they cause memory leaks .....

and so that there are no claims against me, I am posting my code for the previous indicator, but without the alerts

here I would like something similar but for an indicator with BrainTrend2SigAlert alert

Sir, if you have decided to do programming, you should first learn to ask your questions to people around you, especially to those who owe you absolutely nothing. Ask anyone who knows a little bit about this business and you will clearly and unambiguously repeat the same thing that you have already heard. The question is the answer. Nobody is engaged in telepathy and guessing other people's thoughts at a distance in any way or at all. Nothing personal, just the logic of understanding things and that's all!

 
Nikolay Kositsin:

Sir, if you have decided to do programming, you should first learn to ask your questions to people around you, especially to those who owe you absolutely nothing and do not owe you anything. Ask anyone who knows a little bit about this business and you will clearly and unambiguously repeat the same thing that you have already heard. The question is the answer. Nobody is engaged in telepathy and guessing other people's thoughts at a distance in any way or at all. Nothing personal, just the logic of understanding things and that's all!

the question was asked quite correctly, but your answer with sending you to who knows where was PREDELICALLY INCORRECT,

sir, I understand that you just want to snicker instead of a normal clear answer, little thinking people will answer about HOW TO CONNECT TO THIS INDICATOR BY CODE, you just want to talk,

so I'm telling you - you really don't owe anything and can't do anything ... so do not answer, do not clutter the topic with your not even close to professional and not in the topic of the question "judgements".

and don't teach others how to use search if you don't know how to use it yourself.

 
Boris Egorov:

the question was asked quite correctly, but your answer with sending me to who knows where was PREDELICATELY INCORRECT,

sir, I understand that you just want to snicker instead of a normal clear answer, small-minded people will answer about HOW TO CONNECT TO THIS INDICATOR BY CODE, you just want to talk,

so I'm telling you - you really don't owe anything and can't do anything ... so don't answer, don't clutter the topic with your "judgements" that are not even close to professional and not in the topic of the question.

1. This indicator is for MetaTrader 5 terminal

2. familiarise yourself with the help: iCustom

3. Look for examples in (KodoBase and on the forum) of iCustom call.

 
Boris Egorov:

the question was asked quite correctly, but your answer with sending me to who knows where was PREDELICATELY INCORRECT,

sir, I understand that you just want to snicker instead of a normal clear answer, small-minded people will answer about HOW TO CONNECT TO THIS INDICATOR BY CODE, you just want to talk,

so I'm telling you - you really don't owe anything and can't do anything ... so don't answer, don't clutter the topic with your "judgements" that are not even close to professional and not in the topic of the question.

and do not teach others to use the search if you do not know how to use it yourself.

Dear, you are the one who is being rude! And you start to be rude specifically and frankly. Here is your question: how to connect to it from your advisor? Which you specifically you specifically *** a lot of topics. Here is one of the codes from the search, in which the answer to your question is specifically marked: Exp_BrainTrend2_AbsolutelyNoLagLwma_MMRec. No one is going to read your mind and retrospect your questions. And with such an impudent manner of communication you personally will not give any answers, you can wait for the weather.

 
Vladimir Karputov:

1. This indicator is for MetaTrader 5 terminal

2. Read the help: iCustom

3. Look for examples in (KodoBase and on the forum) of iCustom call.

I think so, but I haven't checked it yet

//0 - SellBuffer 
//1 - BuyBuffer 
double indBrainTrend2SigAlert(string symbol           =NULL,
                              int    tf               =PERIOD_M5,
                              int    ATR_Period       =7,
                              uint   NumberofBar      =1,                  //Bar number for signalling
                              bool   SoundON          =true,               //Alert resolution
                              uint   NumberofAlerts   =2,                  //Number of alerts
                              bool   EMailON          =false,              //Signalling mailing permission
                              bool   PushON           =false,              // Permission to send a signal to the mobile phone
                              string sBuffer          ="SellBuffer",
                              int    iShift           =0
                              )
{
  double buf[];
  if (sBuffer!="SellBuffer" && sBuffer!="BuyBuffer") 
  { 
     Alert("For BrainTrend2SigAlert sBuffer must be equal to SellBuffer or BuyBuffer".); 
     Print("No known buffer for indBrainTrend2Sig!");
     return(-1);
  }
  int iBuffer=0;
  
  if (sBuffer=="SellBuffer") {iBuffer=0;}
  if (sBuffer=="BuyBuffer" ) {iBuffer=1;}  

  ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
  int handle=iCustom(symbol,timeframe,"BrainTrend2SigAlert",ATR_Period,NumberofBar, SoundON, NumberofAlerts, EMailON, PushON, iBuffer,iShift);  
  if(handle==INVALID_HANDLE)  
  {
     Print("Object indBrainTrend2Sig not created: Error ",GetLastError());
     return(-1);
  }
  else
  {
     return( CopyBufferMQL4(handle,0,iShift) ); //return( CopyBuffer(handle,iBuffer,iShift,iShift,1,buf) );
  }
}//void
This website uses cookies. Learn more about our Cookies Policy.