|
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.
|