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
Why you don´t use the Shift?
double dFastMA1 = iCustom(sSymbol,CurrentTimeFrame,sMAIndicatorName,0,iFastMAPeriod,0,0,1,1,0,0,0,0,1);
double dSlowMA1 = iCustom(sSymbol,CurrentTimeFrame,sMAIndicatorName, 0,iSlowMAPeriod,0,0,1,1,0,0,0,0,1);
double dFastMA2 = iCustom(sSymbol,CurrentTimeFrame,sMAIndicatorName,0,iFastMAPeriod,0,0,1,1,0,0,0,0,2);
double dSlowMA2 = iCustom(sSymbol,CurrentTimeFrame,sMAIndicatorName, 0,iSlowMAPeriod,0,0,1,1,0,0,0,0,2);
If (dFastMA2 < dSlowMA2 && dFastMA1 > dSlowMA1)
{
//Cross up
}
If (dFastMA2 > dSlowMA2 && dFastMA1 < dSlowMA1)
{
//Cross Down
}