Alert question

 

Hi

I wrote Alert but it only works when I open window with my indicator. It works only also when I jump beetwen charts windows, in other words when I jump between charts time levels. It seems that indicator can not count when whorks. How can I solve my problem ? Need help. Is it conected with Indicatorcounted ? Should I do something in parameter of Alert. How to do it ?

Should I use something like:

double

? = ObjectGetValueByShift(string name, int shift));

if (???????????)

Alert("Pattern on " + Symbol() + " " + Period());



Can someone please to write example of Alert once (Alert one). I would like to write Alert one at the moment when the code shows Line in my indicator on the chart.





Pucio
 

Hello Pucio


Without seeing ALL code for overall context in which Alert() is being used, unlikely you get answered...


Have you read this? MQL4 Tutorial - Basics of the Language - Program Types

and...

Have you been reading the MQL4 Tutorial??? Programming in Algorithmic Language MQL4 - Introductory Course


regards

Reason: