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

[amibroker] Re: Timeframes and Foriegn



PureBytes Links

Trading Reference Links

I am posting this one again since I may not have explained well 
enough the problem I am having.

I use weekly stock charts and use a daily index to filter signals. I 
want to combine the daily index indicator into the weekly chart.

I do not fully understand how to use the daily timeframes in the one 
weekly chart - is there some better info and examples on how this is 
done?

One example of my endeavours is shown below - one of many.

Steve

--- In amibroker@xxxxxxxxxxxxxxx, "steve_roweau" <affrica@xxxx> 
wrote:
> I am relatively new to AmiBroker, having transfered my system from 
> Metastock this year. I have used TradeSim and MS to portfolio test 
my 
> strategy, but am struggling getting one aspect of my system to 
> operate using AmiBroker.
> 
> I am trying to get an indicator based on an index to display on 
> weekly charts using daily index, or foriegn, data. The code that I 
> have come up with is as follows;
> 
> price=TimeFrameExpand( Foreign("XSO","Close"), inDaily);
> 
> Q = Param("RSI periods",34,2,40,1);
> n=ROC(Price,1);
> Z=Wilders(IIf(n>0,n,0),Q);
> Y=Wilders(IIf(n<0,abs(n),0),Q);
> RS=Z/Y;
> R=100-(100/(1+RS));
> 
> Index = (R-LLV(R,q))/(HHV(R,q)-LLV(R,q))*100; 
> TimeFrameRestore();
> Plot(index,"StoRSI",colorWhite,styleLine);
> 
> I understand that there are other ways of doing this. This is just 
> one approach that I have tried, but I am not having any success no 
> matter what I try. 
> 
> I tried to change the weekly system from weekly to daily and it 
> looked good on the chart, but the signals didn't line up in quite 
the 
> same way. I also want to use the daily index in weekly timeframe 
for 
> system testing and exploring. 
> 
> What is the right approach to this?
> 
> Steve



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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