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

[amibroker] TimeFrameSet Assistance requested



PureBytes Links

Trading Reference Links

I'm hoping someone can shed some light on what I'm doing wrong.  I 
trade with a daily chart and am trying to employ a weekly trend 
indicator in one of the panes by using the TimeFrameSet command.

It seemed to work fine, but to verify the results, I opened a second 
chart window so that I have one window in daily mode using the 
indicator with TimeFrameSet and the other window in weekly mode 
using the same indicator, but without TimeFrameSet.  If I understand 
this correctly, the indicators in both windows should look identical 
if they are displaying the same time period, but they do not.  Would 
someone be kind enough to tell me what I did wrong?  Here is the 
code I'm using;

The code below is in a daily window;

TimeFrameSet (inWeekly);
Value1=0.1*(RSI(5)-50);
Value2=WMA(Value1,9);
ifish=(exp(2*Value2)-1)/(exp(2*Value2)+1);

myarray=IIf(ifish>0.5,ColorRGB(200,255,190),IIf(ifish<-
0.5,colorPink,colorWhite));

Plot(1,"Trend",myarray,styleArea | styleOwnScale | styleNoLabel,0,1);
Title="Symbol Weekly Trend";

+++++++++++++++++++++++++++

The code below is in a weekly window;
Value1=0.1*(RSI(5)-50);
Value2=WMA(Value1,9);
ifish=(exp(2*Value2)-1)/(exp(2*Value2)+1);

myarray=IIf(ifish>0.5,ColorRGB(200,255,190),IIf(ifish<-
0.5,colorPink,colorWhite));

Plot(1,"Trend",myarray,styleArea | styleOwnScale | styleNoLabel,0,1);
Title="Symbol Weekly Trend";

Any help would be appreciated.

Safetrading



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
 
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/