Forum on trading, automated trading systems and testing trading strategies
Hello,
Please EDIT your post and use the SRC button when you post code.
Thank you.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey guys I'm trying to make an alert for ichimoku when chikou crosses the cloud, but I got no results.
Can someone help me?
I have this code atm:
if(AlertType==2 || AlertType==3)
{
if(ExtChikouBuffer[rates_total-1]>ExtSpanBBuffer[rates_total-1] && ExtChikouBuffer[rates_total-2]<ExtSpanBBuffer[rates_total-2] && !UptrendAlert1)
{
StringConcatenate(Msg,"BUY Signal --- : Chikou crosses Cloud: ",Symbol()," on ",(ENUM_TIMEFRAMES)Period()
, " @ ",DoubleToString(close[rates_total-1],_Digits),", @ ",TimeToString(TimeLocal(),TIME_SECONDS));
UptrendAlert1 = true;
DntrendAlert1 = false;
Alert(Msg);
}
if(ExtChikouBuffer[rates_total-1]<ExtSpanBBuffer[rates_total-1] && ExtChikouBuffer[rates_total-2]>ExtSpanBBuffer[rates_total-2] && !DntrendAlert1)
{
StringConcatenate(Msg,"SELL Signal --- : Chikou crosses Cloud: ",Symbol()," on ",(ENUM_TIMEFRAMES)Period()
, " @ ",DoubleToString(close[rates_total-1],_Digits),", @ ",TimeToString(TimeLocal(),TIME_SECONDS));
UptrendAlert1 = false;
DntrendAlert1 = true;
Alert(Msg);
}
}
return(rates_total);
}