PureBytes Links
Trading Reference Links
|
Hello Andrew,
try out the formula below:
Best regards
Thomas Zmuck
www.tradingbasis.com
// simple key reversal
H1 = Ref(H, -1);
H2 = Ref(H, -2);
C1 = Ref(C, -1);
C2 = Ref(C, -2);
L1 = Ref(L, -1);
L2 = Ref(L, -2);
DaysSince = 6;
//DaysSince = Optimize("DaysSince",30,1,30,1);
SetUp = L1 < L2 AND C1 > C2 AND L1 == LLV(L1, DaysSince);
PlotShapes(IIf(Setup,shapeSmallCircle,-1e10),colorLime,0,L);
Plot(C,"C",1,128);
Constants for shapes:
shapeNone, shapeUpArrow, shapeDownArrow, shapeHollowUpArrow,
shapeHollowDownArrow, shapeSmallUpTriangle, shapeSmallDownTriangle,
shapeHollowSmallUpTriangle, shapeHollowSmallDownTriangle, shapeUpTriangle,
shapeDownTriangle, shapeHollowUpTriangle, shapeHollowDownTriangle,
shapeSmallSquare, shapeHollowSmallSquare, shapeSquare, shapeHollowSquare,
shapeSmallCircle, shapeHollowSmallCircle, shapeCircle, shapeHollowCircle,
shapeStar, shapeHollowStar, shapeDigit0, shapeDigit1, shapeDigit2,
shapeDigit3, shapeDigit4, shapeDigit5, shapeDigit6, shapeDigit7,
shapeDigit8, shapeDigit9, shapePositionAbove
-----Original Message-----
From: Andrew Z [mailto:wizard@xxxxxxxxxxxxxxx]
Sent: Friday, February 11, 2005 1:24 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Plots and stuff
G'day all,
I'm trying to get a simple key reversal point plotted on a price chart,
but am having no luck. It plots points, but not at where the key
reversal bars are. The code is below:
// simple key reversal
H1 = Ref(H, -1);
H2 = Ref(H, -2);
C1 = Ref(C, -1);
C2 = Ref(C, -2);
L1 = Ref(L, -1);
L2 = Ref(L, -2);
DaysSince = 6;
//DaysSince = Optimize("DaysSince",30,1,30,1);
SetUp = L1 < L2 AND C1 > C2 AND L1 == LLV(L1, DaysSince);
Plot(Setup, "Key Reversal SetUp",7,styleDots+styleNoLine);
Also, how do i get the points to appear overlayed on the price chart of
the stock, rather than as a graph on it's own? (Preferably plotted at
the high of the key reversal bar, so it can be clear)
Thanks,
Andrew.
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|