Indicators: Perfect Trend Line 2 - page 3

 

Thank you very much for this indicator and all others. It helps a lot to take good decisions.

Verena.

 
can somody ade alert to mt5 version tnx
 

please mr mladen add alert to the ptl on mt5. i need alert when the dots appear. thanks

 

Hello Mladen,

Thanks for all the great job you do for the community.

this is a very good indocator, easy to use

 

Hello:


Thank you very much for said indicator, I am trying to load two PTL indicators in two sub-windows.


For instance


PTL_handle= iCustom ( "USTEC" , Period (), "PTLOR" );

PTL_handle2= iCustom ( "DE40" , Period (), "PTLOR" );


I would like to see said indicator with two different markets but I do not understand well because it does not appear if it is another market outside the one that the indicator is running.If I am in USTEC it loads the indicator perfectly, however the DE40 does not load it and I do not get errors in LOG or in compilation.

 //+------------------------------------------------------------------+
//| GLOBAL VARIABLES                                                 |
//+------------------------------------------------------------------+

int PTL_handle,PTL_handle2;   //Custom indicator 


//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+

int OnInit () 
  {
  

//--- get an indicator handle
   
PTL_handle= iCustom ( "USTEC" , Period (), "PTLOR" );
PTL_handle2= iCustom ( "DE40" , Period (), "PTLOR" );

if (PTL_handle== INVALID_HANDLE )

return ( INIT_FAILED );

//--- done


//+------------------------------------------------------------------+
//| ADD THE INDICATOR/S TO THE CHART                                 |
//+------------------------------------------------------------------+

#ifdef __MQL5__    

 
   ChartIndicatorAdd ( 0 , 1 ,PTL_handle); 
   ChartIndicatorAdd ( 0 , 2 ,PTL_handle2); 

#endif   

 return ( INIT_SUCCEEDED );

ETC ETC


I find myself a bit lost where to go, I think the indicator what it does is copy O / C / H / L in an array and it is resized, but for what I do not understand or understand well what happens when inserting another market that does not be the open one.


I really appreciate the help and your time.I merely seek to learn to program.


Note: I have also tried it merely as an indicator, rather than an expert, and I also cannot see what I am stuck with or cannot understand.

 
 great indicator could you please add alert when dot appears thanks.
 

Dear Mladen

Could you kindly add a push notification when dots appear ? Thanks for the great work

 

Maybe it's much easier by just create another indicator for notification purpose. I failed to include the notification feature into the original source code, and maybe the reason he didn't include that feature as well. Therefore, I create an add-on indicator to handle the alert. I also attached the add-on indicator into this comment as well.


 
Sopheak Khlot #:

Maybe it's much easier by just create another indicator for notification purpose. I failed to include the notification feature into the original source code, and maybe the reason he didn't include that feature as well. Therefore, I create an add-on indicator to handle the alert. I also attached the add-on indicator into this comment as well.


ex5 are not allowed on this forum. You would need to post the source code.
 
Alain Verleyen #:
ex5 are not allowed on this forum. You would need to post the source code.

Well noticed. Just wanted to share what people asked for.

Reason: