PLEASE HELP ME WITH MY NEW DEVELOPED INDICATOR

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
Moderator
3423
GumRai 2015.12.23 11:32 #
 
As the alert is contained within the same block of code as the condition placing the arrow, I don't see how it is possible to get an alert without an arrow.
avatar
19
younghadiz 2015.12.23 17:20 #
 
GumRai:
As the alert is contained within the same block of code as the condition placing the arrow, I don't see how it is possible to get an alert without an arrow.
YOU CAN TEST IT SIR , TO SEE WHAT AM SAYING SIR.
avatar
Moderator
3423
GumRai 2015.12.23 23:54 #
 

Please do not post in capital letters, it is considered rude.

 

I see what is happening now, it is because the alert check is based on Time[0] instead of the ctual alert bar

         if ( alertTag!=Time[0])
         {
          PlaySound("news.wav");// buy wav
          Alert(Symbol(),"  M",Period()," BUY/CALL");
         }
          alertTag = Time[0];

 should be replaced with

         if(alertTag<Time[i] && counted_bars!=0)
           {
            PlaySound("news.wav");// buy wav
            Alert(Symbol(),"  M",Period()," BUY/CALL");
            alertTag=Time[i];
           }

 and similarly for the sell signal

avatar
19
younghadiz 2015.12.24 08:29 #
 
GumRai:

Please do not post in capital letters, it is considered rude.

 

I see what is happening now, it is because the alert check is based on Time[0] instead of the ctual alert bar

 should be replaced with

 and similarly for the sell signal

Every thing is now working perfectly sir.

thanks very much for your support sir , may almighty God reward you abundantly.

Back to topics list   | 1 2  

To add comments, please log in or register