Yesterday 11:56 PM #8 Speedie Speedie is offline Registered User Speedie is an unknown quantity at this time
Join Date May 2011 Posts 1
The code appears to be faulty in several ways:
1) It is looking for simultaneous crosses of moving averages in both timeframes (very rare) rather than seeing if the fast MA is above/below the slow MA in the longer timeframe for trend direction, then triggering based on crossovers in the shorter timeframe.
2) The above/below in the longer timeframe seems to be ignored anyway i.e. trades are entered long in the shorter timeframe even if the longer timeframe has the fast MA below the slow MA.
Unfortunately I haven't played with coding for ST enough to fix it (yet).