Problem Double Stoch Arrow - page 2 12 New comment Keith Watford 2016.12.17 13:58 #11 So have you changed it from the attachment in your first post or not? zahidmahmood 2016.12.17 14:21 #12 yes i modify with james code but still have same issue Keith Watford 2016.12.17 20:01 #13 Is this more like what you are looking for? if(Stoch1>Level && Stoch3>Level && ( Stoch2<Level || Stoch4<Level )) { UP[i]=Low[i]-distance*MyPoint; DOWN[i]=EMPTY_VALUE; if(CTime!=Time[0]) { if(PopUpAlert){Alert(Symbol()," ","Buy Arrow");} if(EmailAlert){SendMail(Symbol()+" Buy Arrow"+"","Buy Signal");} if(PushAlert){SendNotification(Symbol()+" Buy Arrow"+"");} CTime=Time[0]; } } if(Stoch1<Level && Stoch3<Level && ( Stoch2>Level || Stoch4>Level )) { DOWN[i]=High[i]+distance*MyPoint; UP[i]=EMPTY_VALUE; if(CTime!=Time[0]) { if(PopUpAlert){Alert(Symbol()," ","Sell Arrow");} if(EmailAlert){SendMail(Symbol()+" Sell Arrow"+"","Sell Signal");} if(PushAlert){SendNotification(Symbol()+" Sell Arrow"+"");} CTime=Time[0]; } } Checking Candle Open Any questions from newcomers How to code? zahidmahmood 2016.12.18 05:56 #14 Keith Watford: Is this more like what you are looking for? if(Stoch1>Level && Stoch3>Level && ( Stoch2<Level || Stoch4<Level )) { UP[i]=Low[i]-distance*MyPoint; DOWN[i]=EMPTY_VALUE; if(CTime!=Time[0]) { if(PopUpAlert){Alert(Symbol()," ","Buy Arrow");} if(EmailAlert){SendMail(Symbol()+" Buy Arrow"+"","Buy Signal");} if(PushAlert){SendNotification(Symbol()+" Buy Arrow"+"");} CTime=Time[0]; } } if(Stoch1<Level && Stoch3<Level && ( Stoch2>Level || Stoch4>Level )) { DOWN[i]=High[i]+distance*MyPoint; UP[i]=EMPTY_VALUE; if(CTime!=Time[0]) { if(PopUpAlert){Alert(Symbol()," ","Sell Arrow");} if(EmailAlert){SendMail(Symbol()+" Sell Arrow"+"","Sell Signal");} if(PushAlert){SendNotification(Symbol()+" Sell Arrow"+"");} CTime=Time[0]; } }awsome yes this is ok now thank u very much Mr Keith William Roeder 2016.12.18 18:20 #15 Write self-documenting code if(Stoch1>Level && Stoch3>Level && ( Stoch2<Level || Stoch4<Level ))so you can understand it next week.bool isSignal = Stoch1>Level && Stoch3>Level;bool wasSignal = Stoch2>Level && Stoch4>Level; if(isSignal && !wasSignal) 12 New comment
if(Stoch1>Level && Stoch3>Level && ( Stoch2<Level || Stoch4<Level ))
{
UP[i]=Low[i]-distance*MyPoint;
DOWN[i]=EMPTY_VALUE;
if(CTime!=Time[0])
{
if(PopUpAlert){Alert(Symbol()," ","Buy Arrow");}
if(EmailAlert){SendMail(Symbol()+" Buy Arrow"+"","Buy Signal");}
if(PushAlert){SendNotification(Symbol()+" Buy Arrow"+"");}
CTime=Time[0];
}
}
if(Stoch1<Level && Stoch3<Level && ( Stoch2>Level || Stoch4>Level ))
{
DOWN[i]=High[i]+distance*MyPoint;
UP[i]=EMPTY_VALUE;
if(CTime!=Time[0])
{
if(PopUpAlert){Alert(Symbol()," ","Sell Arrow");}
if(EmailAlert){SendMail(Symbol()+" Sell Arrow"+"","Sell Signal");}
if(PushAlert){SendNotification(Symbol()+" Sell Arrow"+"");}
CTime=Time[0];
}
}
Is this more like what you are looking for?
if(Stoch1>Level && Stoch3>Level && ( Stoch2<Level || Stoch4<Level ))
{
UP[i]=Low[i]-distance*MyPoint;
DOWN[i]=EMPTY_VALUE;
if(CTime!=Time[0])
{
if(PopUpAlert){Alert(Symbol()," ","Buy Arrow");}
if(EmailAlert){SendMail(Symbol()+" Buy Arrow"+"","Buy Signal");}
if(PushAlert){SendNotification(Symbol()+" Buy Arrow"+"");}
CTime=Time[0];
}
}
if(Stoch1<Level && Stoch3<Level && ( Stoch2>Level || Stoch4>Level ))
{
DOWN[i]=High[i]+distance*MyPoint;
UP[i]=EMPTY_VALUE;
if(CTime!=Time[0])
{
if(PopUpAlert){Alert(Symbol()," ","Sell Arrow");}
if(EmailAlert){SendMail(Symbol()+" Sell Arrow"+"","Sell Signal");}
if(PushAlert){SendNotification(Symbol()+" Sell Arrow"+"");}
CTime=Time[0];
}
}
bool wasSignal = Stoch2>Level && Stoch4>Level;
if(isSignal && !wasSignal)