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

Re: [amibroker] TimeFrameSet Assistance requested



PureBytes Links

Trading Reference Links

Hi,
 
No problem. Its fun learning AFL. Its very powerfull.
 
weeklyifish=TimeFrameExpand(ifish,inWeekly,expandfirst);
 
You missed the expandfirst
 
Try now and let me know if this works.
 
Cheers,Padhu
 
 
----- Original Message -----
Sent: Friday, November 30, 2007 10:00 AM
Subject: Re: [amibroker] TimeFrameSet Assistance requested

Thanks for the prompt reply, but I must be thick, as I can't seem to get it to work.  I looked at your example in the post and added the timeframeset/timeframeexpand combination to my code, but it still does not display the proper color bars.  Here is how I edited my code to include your example in my daily chart;
 
///////////////////////////weekly symbol trend based upon Inverse Fisher Transform
TimeFrameSet
(inWeekly);
///////////////////////////current trend based upon Inverse Fisher Transform
Value1=0.1*(RSI(5)-50);
Value2=WMA(Value1,9);
ifish=(exp(2*Value2)-1)/(exp(2*Value2)+1);
TimeFrameRestore
();
weeklyifish=
TimeFrameExpand(ifish,inWeekly);
myarray=IIf(weeklyifish>0.5,ColorRGB(200,255,190),IIf(weeklyifish<-0.5,colorPink,colorWhite));
Plot
(1,"Trend",myarray,styleArea | styleOwnScale | styleNoLabel,0,1);
Title="Symbol Weekly Trend";

The above code does not give the same results as this code without the time frame changing when displayed on a weekly chart.
 
Did I miss something?
 
Thanks,
 
Safetrading
Padhu <ccie8340@xxxxxxcom> wrote:
Your code is not correct. Pls use my previous post an example and try that medthod using timeframeset/timeframe expand combination.
 
 
 
Cheers,Padhu
 
----- Original Message -----
Sent: Thursday, November 29, 2007 11:46 AM
Subject: [amibroker] TimeFrameSet Assistance requested

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



Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.

__._,_.___

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




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

__,_._,___