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

[amibroker] Re: AmiBroker - Data Source QP2 vs TC2000



PureBytes Links

Trading Reference Links









Or it may be better to use barindex()==(Barcount-1) because
over the weekend Now() gives you the current date, not the last date on the
chart.

 

Another is to just plot the Lastvalue of the values

Plot(Lastvalue(S1),"Pivot",2,styleLine

 



Cheers,
Graham
http://e-wire.net.au/~eb_kavan/ 



<span
>-----Original Message-----
From: Gary A. Serkhoshian
[mailto:serkhoshian777@xxxxxxxxx] 
Sent: Saturday, April 03, 2004
5:24 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] support
and resistance lines - help

<font size=2
face="Times New Roman"> 



<font size=2
face="Times New Roman">MR,





<font size=2
face="Times New Roman"> 





<font size=2
face="Times New Roman">There are two ways I can
think of to do this.  First one is to place an IIF statment in the style
portion of your plot so it'll look something like this.





<font size=2
face="Times New Roman"> 





<font size=2
face="Times New Roman">IIF(DateNum() == Now(3),
styleline + stylenorescale, stylenoplot);





<font size=2
face="Times New Roman">Or just add
stylenorescale to all your plots so yesterday's pivots will not interfere with
todays price chart.





<font size=2
face="Times New Roman"> 





<font size=2
face="Times New Roman">Hope this helps,





<font size=2
face="Times New Roman">Gary





<font size=2
face="Times New Roman">
mroman59
<mroman59@xxxxxxxxx> wrote:





The
followig code is for support and resistance and I use on a daily <font
face="Courier New">
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);



Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font
face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html






<font
size=2 face="Times New Roman">





<span
>Do you Yahoo!?
<a
href="">Yahoo!
Small Business $15K Web Design Giveaway - Enter today 

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









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 the Yahoo! Terms of Service.