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

RE: [amibroker] Indicator problem.



PureBytes Links

Trading Reference Links

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



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