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

Re: [amibroker] Exploration with 2 time frames



PureBytes Links

Trading Reference Links

I also tried Timframeset() but the results differ when you use Shri's
solution. My suggestion is also if Amibroker developers could ease the
language of Timeframing.

Timeframeset, Timeframexpand, Timeframecompress.

I am certain easier languaging can be used.


On 2/14/09, Aron <aron.groups@xxxxxxxxx> wrote:
> Your code is correct. it is just that a simultaneous crossover in both
> time frames might be a rare event.
>
> try:
> |Rule = Cross( *Close*, EMA( *Close*, 45 ) );|
> |Rule_time2 =  *Close* >EMA( *Close*, 45 ) ;|
>
> I also noticed that using time functions with |TimeFrameSet|()  does not
> return correct results.
>
>
>
>
>> 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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/