Thread: Stoch Signal
View Single Post
  #7 (permalink)  
Old 05-18-2007, 03:57 PM
C.E.O.'s Avatar
C.E.O. C.E.O. is offline
Member
 
Join Date: Nov 2006
Posts: 90
C.E.O. is on a distinguished road
if (stochk1 <= stochd1 && stochk0 > stochd0 && stochk0<=30)
{
last_cross = Time[0];
PlaySound(Sound1);
Alert("Stoch crosses up!");
}else if(stochk1 >= stochd1 && stochk0 < stochd0 && stochk0>=70){
PlaySound(Sound2);
Alert("Stoch crosses down!");

I added these in red to the indicator, I THINK this is what you are wanting. It is the main line, not signal line. If you want the signal line change the 0 to 1 in the red part.
Attached Files
File Type: mq4 StochCrossAlertOBOS.mq4 (2.2 KB, 323 views)
Reply With Quote