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

[amibroker] Plotting weekly on daily chart



PureBytes Links

Trading Reference Links

I want to use weekly values of my support/resistance formula and plot these
onto a daily chart. This is the formula using RSI to find sup/res levels I
have previously posted. I have tired to do this, but am not cetain if I have
done it correctly. I tried it with overlaying on the original daily formula
indicator, and when changing to weekly view the res/sup levels are not
matching those determined in the formula below

Assistance appreciated


GraphXSpace=0.5;
Plot(C, "", colorBlack, styleBar+styleNoLabel);

TimeFrameSet(inWeekly);
RSIperiod	= 3;
Percent 		= 9;
HHVperiod 	= 2;
Offset		= 0;
NumLine 		= 1;
SigPer		= 5;
MAperiod 	= 3;
Base = DEMA(RSI(RSIperiod),MAperiod);

TimeFrameRestore();

for( i = 1; i <= numline; i++ )
{
ResBase = (Peak(Base,Percent,i));
SupBase = (Trough(Base,Percent,i));
ResLevel = ValueWhen( ResBase==Base,Ref( HHV(H,HHVperiod),Offset) );
SupLevel = ValueWhen( supbase==Base, Ref( LLV(L,HHVperiod),Offset) );
Plot(ResLevel, "Resist Level", colorBrown, styleDots+styleNoLine);
Plot(SupLevel, "Support Level", colorBlue, styleDots+styleNoLine);
}


Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


------------------------ 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/l.m7sD/LIdGAA/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/