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 <[EMAIL PROTECTED]> wrote:
            Your code is not correct. Pls use my previous post an example and 
try that medthod using timeframeset/timeframe expand combination.
   
  http://finance.groups.yahoo.com/group/amibroker/message/116186?threaded=1&l=1
   
   
  Cheers,Padhu
   
    ----- Original Message ----- 
  From: safetrading 
  To: [email protected] 
  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.

Reply via email to