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

[amibroker] Has anyone used Triangular Formation Exploration ??



PureBytes Links

Trading Reference Links

MR,

I am not sure what you are asking about when you say "eliminate 
previous days s & P".  But you asked about creating single horizontal 
lines based on the previous days data. Does this help you?

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

//Support AND Resistance Lines Formula
TimeFrameSet( inDaily );
PP = Ref(((H + L + C)/3),-1);
Range = Ref((H-L),-1);
R1 = PP + (PP-Ref(L,-1));
R2 = PP + Range;
R3 = R1 + Range;
R4 = R2 + Range;
S1 = PP - (Ref(H,-1)-PP);
S2 = PP - Range;
S3 = S1 - Range;
S4 = S2 - Range;

TimeFrameRestore();
DailyPP=TimeFrameExpand(PP,inDaily);
DailyRange=TimeFrameExpand(Range,inDaily);
DailyS1=TimeFrameExpand(S1,inDaily);
DailyS2=TimeFrameExpand(S2,inDaily);
DailyS3=TimeFrameExpand(S3,inDaily);
DailyS4=TimeFrameExpand(S4,inDaily);

DailyR1=TimeFrameExpand(R1,inDaily);
DailyR2=TimeFrameExpand(R2,inDaily);
DailyR3=TimeFrameExpand(R3,inDaily);
DailyR4=TimeFrameExpand(R4,inDaily);

Plot(C, "Close", 1, 64);
Plot(DailyPP,"Pivot PP",1,1,1.4);
Plot(DailyS1,"Pivot S1",2,1,1.4);
Plot(DailyR1,"Pivot R1",3,1,1.4);
Plot(DailyS2,"Pivot S2",4,1,1.4);
Plot(DailyR2,"Pivot R2",5,1,1.4);
Plot(DailyS3,"Pivot S3",6,1,1.4);
Plot(DailyR3,"Pivot R3",7,1,1.4);
Plot(DailyS4,"Pivot S4",8,1,1.4);
Plot(DailyR4,"Pivot R4",9,1,1.4);


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

John

--- In amibroker@xxxxxxxxxxxxxxx, "mroman59" <mroman59@xxxx> wrote:
> The followig code is for support and resistance and I use on a 
daily 
> realtime chart. This takes into account previous days quote data. 
> This is not intraday support and resistance. However, I can not 
> create single horizontal lines that are for only for the previous 
> day. This formula posts a continuous line for each day that I do 
not 
> want to show up on my chart. I just want to creat a single 
> horizontal line for each area and eliminate previous days s & P. 
> Basically I want to create a better looking chart.
> 
> Thank You
> MR
> 
> //Support AND Resistance Lines Formula
> 
> PP = Ref(((H + L + C)/3),-1);
> Range = Ref((H-L),-1);
> R1 = PP + (PP-Ref(L,-1));
> R2 = PP + Range;
> R3 = R1 + Range;
> R4 = R2 + Range;
> S1 = PP - (Ref(H,-1)-PP);
> S2 = PP - Range;
> S3 = S1 - Range;
> S4 = S2 - Range;
> 
> Plot(C, "Close", 5, styleCandle);
> Plot(PP,"Pivot",1,styleLine);
> Plot(S1,"Pivot",2,styleLine);
> Plot(R1,"Pivot",3,styleLine);
> Plot(S2,"Pivot",2,styleLine);
> Plot(R2,"Pivot",3,styleLine);
> Plot(S3,"Pivot",2,styleLine);
> Plot(R3,"Pivot",3,styleLine);
> Plot(S4,"Pivot",2,styleLine);
> Plot(R4,"Pivot",3,styleLine);



------------------------ 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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> 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/