Hi amibroker experts,

I'm a little stuck with multiple time frames - and was hoping someone could
assist. It's probably a straight forward solution as I'm pretty much a
newbie at this.

I've got a basic oscillator (similar to stochastics) in which I have
determined that <30 is oversold, >70 is overbought and 50 at mid range. i'm
using the higher time frame as a condition, so looking at the hourly chart,
I only want a buy signal to be actioned if the daily chart (%K and %D) is
less than the mid range (50).

I put all my daily parameters between:
TimeFrameSet (inDaily) and TimeFrameRestore ();

And my buy/sell instruction (in the hourly setting) is as follows:

IIf((DailySK<=DailyMid AND DailySD<=DailyMid),Buy=SK<=Lower AND SD<=Lower
AND Cross(SK,SD),0);
IIf((DailySK>=DailyMid AND DailySD>=DailyMid),Sell=SK>=Upper AND SD>=Upper
AND Cross(SD,SK),0);
Short=Cover=0;

For some reason I am getting results which ignore the higher time frame?
Much appreciated.
Jonathan

Reply via email to