[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re:Exploration with 2 time frames



PureBytes Links

Trading Reference Links

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




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___