I want a multi time frame scan but getting errors,Please let me know the mistake

TimeFrameSet(in45Minutes);

StochK45=StochK(14,3);
StochD45=StochD(14,3,3);
TimeFrameRestore();

TimeFrameSet(in5Minute);

StochK5min=StochK(14,3);
StochD5min=StochD(14,3,3);
TimeFrameRestore();

Buy=(StochK45>StochD45)& Cross(StochK5min,StochD5min);
Sell=(StochD45>StochK45)&Cross(StochD5min,StochK5min);

Errors:

1) it is showing syntax error for 45 mins

2) When I scan I am keeping the settings for 5 mins then it is showing Cross of 
5 minutes stochastics & ignoring whether the 45 mins stochastics is above or 
below it's trigger





Reply via email to