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

[amibroker] Re: Negative volume from MS plug-in



PureBytes Links

Trading Reference Links


Marty,
 
Just paste the code into the builtin price indicator in IB and check "Use Formula Only" in the lower right corner.
 
You may want to save a copy of the original price chart in case you want to go back to it.
 
The date should reflect automatically if you are on daily or weekly charts.  If you mean you want your title to display the text "Daily" or "Weekly", take a look at the interval function as Tomasz has added some nice functionality there that will give you what you need.
 
Kind Regards,
Garyprog200 <prog200@xxxxxxxxx> wrote:
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,500);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.ThanksMartySend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 
		Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th


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 the Yahoo! Terms of Service.