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

RE: [amibroker] Modify Price Chart



PureBytes Links

Trading Reference Links

To get the buy/sell signals, you will need to have the buy/sell formula
within the chart code
Buy = yourbuyconditions;
Sell = yoursellconditions;
PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-20);
PlotShapes(Sell*shapeDownArrow,colorRed,0,H,-20);

Not sure what you mean by change the date from daily to weekly?
If you mean the title to show if daily,weekly add this to the title line

WriteIf(Interval()==86400, "Daily", WriteIf(Interval()==432000, "Weekly",
WriteIf(Interval()==2160000, "Monthly", ""))) )

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

-----Original Message-----
From: prog200 [mailto:prog200@xxxxxxxxx] 
Sent: Friday, April 16, 2004 7:28 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Price Graph Indicator

Does anyone have an idea on how to add the following two items to a 
new price indicator? 

1)Get the buy/sell signals to appear on this new price indicator like 
the built-in one does. 

2) Have the date to change from daily to weekly.

Here is the code I have to far.

MAPeriod1=Param("MAl",20,5,50,2);
MAPeriod2=Param("MA2",50,50,100,20);
MAPeriod3=Param("MA3",100,100,300,50);
MA1=MA(Close,MAPeriod1);
MA2=MA(Close,MAPeriod2);
MA3=MA(Close,MAPeriod3);
MAdiff=MA1-MA2;

Plot
(Close,"C",colorBlack,styleCandle|styleOwnScale|styleLeftAxisScale,5,5
00);
Plot(MA1,"",colorRed,1|styleOwnScale|styleLeftAxisScale,5,500);
Plot(MA2,"",colorBlue,1|styleOwnScale|styleLeftAxisScale,5,500);
Plot(MA3,"",colorGreen,1|styleOwnScale|styleLeftAxisScale,5,500);
Plot(MAdiff,"",colorGreen,styleNoLine|styleOwnScale|styleNoLabel);
Plot(V,"",IIf(C>=Ref
(C,1),colorBlue,colorRed),styleHistogram|styleOwnScale );

Title = " date " +Date() + ", Open " + O+ ", High " +H+ ", Low " +L+ 
", Close " +C+ " Vol(" + WriteVal(Volume, format= 1.0)+")";

I could not figure out how to add the color bars to the built-in 
price indicator that is why I created a new one.

Thanks

Marty




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



 



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