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

Re: [amibroker] price plot help



PureBytes Links

Trading Reference Links

Hi Graham,

Thursday, July 3, 2003, 9:47:39 AM, you wrote:

G> No help I just tried the plot and it worked ok, I got the
G> beginning bars showing

Strange.  I wonder what is inhibiting mine.

Yuki

BTW, we just did the 4 month average daily volume in Tokyo for the
first 4 months of this year . . . in 51 minutes.

G> I'm using the following for a custom price chart.  It is not a trading
G> system, nor is it meant to be.  It's simply a way of looking at prices that
G> I have long been accustomed to.

G> However, I cannot get *any* prices to display at the beginning of the data
G> -- it takes about 4 months before a bar displays, although the moving
G> average lines appear when one would expect them to.

G> Hovering with the mouse over that empty period does produce a popup with the
G> correct price and volume data in it, so it's not a matter of missing or bad
G> data, but probably of my customization -- namely, that the early data
G> doesn't fit any of the conditions yet that I have set for the price bar
G> display.

G> Can someone show me the edit to get this beginning data to display on the
G> chart?  I probably need some conditional statement that will plot the price
G> bar if none of the other conditions apply, but I really don't know how
G> exactly to write it.

G> Thanks,

G> Yuki

G> Title = Name() +"  -  "+ WriteVal( DateTime(), formatDateTime )+"  -
G> "+"Open: "+WriteVal(O,1.0)+" "+" -  Hi: "+WriteVal(H,1.0)+" "+" -  Low:
G> "+WriteVal(L,1.0)+" "+" -  Close: "+WriteVal(C,1.0)+"  -  Volume:
G> "+WriteVal(V,1);


G> F1=ValueWhen(H<Ref(H,-2) AND Ref(H,-1)<Ref(H,-2) AND 
G> Ref(H,-3)<Ref(H,-2) AND Ref(H,-4)<Ref(H,-2),Ref(H,-2),1);
G> F2=ValueWhen(L>Ref(L,-2) AND Ref(L,-1)>Ref(L,-2) AND 
Ref(L,-3)>>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2),1);

G> A=Cross(H,F1);
G> b=Cross(F2,L);

G> Buy=BarsSince(A)<BarsSince(b);
G> Short =BarsSince(A)>BarsSince(b);
G> Cover=Buy;
G> Sell=Short;

G> Buy=ExRem(Buy,Sell);
G> Sell=ExRem(Sell,Buy);
G> Cover=ExRem(Cover,Short);
G> Short=ExRem(Short,Cover); 

G> X = Buy OR Sell;
G> //Plot(C,"",ValueWhen(X,IIf(Sell,colorRed,colorDarkGreen)) ,styleBar); 

G> Plot( Close, Date() +"\n"+ "O: " + WriteVal( Open, 1.2 ) +"\n"+ "H: " +
G> WriteVal(High, 1.2 ) +"\n"+ "L:  " + WriteVal( Low, 1.2 ) +"\n"+ "C: ",
G> ValueWhen(X,IIf(Sell,colorRed,colorDarkGreen)), styleBar);

G> Plot(MA(C,18), "18-day SMA", colorRed, 4); 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/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/