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

Re: [amibroker] Plots and stuff



PureBytes Links

Trading Reference Links

see what happens when you use something like this.
// simple key reversal for short
H1=H>Ref(HHV(H,10),-1);
H2=Ref(H>Ref(HHV(H,10),-1),-1);
L1=L<Ref(LLV(L,10),-1);
L2=Ref(L<Ref(LLV(L,10),-1),-1);


Andrew Z <wizard@xxxxxxxxxxxxxxx> wrote:
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




Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT


Yahoo! Groups Links