How about Rule = cross( close, ema( close, 45 ) );//ema 45 in 5mts Rule_time2= cross( close, ema( close, 540) );//ema 45 in 60mts Filter = rule; AddColumn(TimeNum( ), "Time"); AddColumn(rule, "voila!", 1 );
TimeFrameSet( 3600); Rule_time2 = cross( close, ema( close, 45 ) ); Filter = rule_time2; AddColumn(TimeNum( ), "Time"); AddColumn(rule_ time2, "voila! in hourly", 1 );
Exploration with 2 time frames Posted by: "Carl Vanhaes" carl.van@xxxxxxxxxx cvanhaesendonck Thu Feb 12, 2009 7:58 am (PST) Not sure this topic was addressed before. Because I like trade 2 different time frames (5 and 60 minutes)... I tried to create an exploration with same conditions to be tested (filtered) on 2 the different time frames but it gives inconsistent results and I
can't fix it.
Here is what I have (I just give an example of a standard condition):
Rule = cross( close, ema( close, 45 ) );
Filter = rule; AddColumn(TimeNum( ), "Time"); AddColumn(rule, "voila!", 1 );
TimeFrameSet( 3600); Rule_time2 = cross( close, ema( close, 45 ) ); Filter = rule_time2; AddColumn(TimeNum( ), "Time"); AddColumn(rule_ time2, "voila! in hourly", 1 );
Timeframerestore( );
Any help most appreciated - thank you,
Carl
|