Help With MTF Stochastic Cross

 

Hi everyone. I'm trying to code a simple MTF stochastic cross indicator, but I'm having a few problems. I used Scorpion's '3 MAs Cross Arrows' indicator as the base and modified it for stochastics (thank you Scorpion!).

Basically I want to have 2 stochastics; one for the current time frame and one for the 4 hour. If the current time frame stochastic turns up and the 4 hour stochastic is turned up, an arrow will be placed. If the current time frame stochastic turns up but the 4 hour stochastic is turned down, an arrow will not be placed.

The indicator I've attatched draws the arrows, however it seems like it only pays attention to the current time frame stochastic and not the 4 hour. I appreciate any help!

Files:
 

Hi,

You can get it from here:

Multi Timeframe Indicators - Forex Trading

Regards,

Hoh

Reason: