PureBytes Links
Trading Reference Links
|
BM,
Add a custom indicator, and load the attached AFL. It should plot a vert line and green dot.
Regards,
Garyblack_marubozu <black_marubozu@xxxxxxxxx> wrote:
hello Gary,"Gary A. Serkhoshian" <serkhoshian777@xxxx> wrote:> Hi,> > You need to either do the following:> function fSelectDayAgo( n )> {> return IIf( DateNum()==LastValue(ValueWhen(DateNum()!=Ref(DateNum(),-1), DateNum(), n)), 1, 0);> }> arrSelectedDay = fSelectDayAgo(5);> > PlotShapes( IIf( arrSelectedDay, shapeCircle, shapeNone ), colorGreen); // <--this doesn't plot anything> > //while this does:> > Plot( arrSelectedDay, "PP", colorRed, styleHistogram);> OR> > Keep your code as is but change the plotshapes line:> > PlotShapes( IIf( arrSelectedDay, shapeCircle, shapeNone ), colorGreen,0,0,0);> > PlotShapes needs a ygraph reference. When you have your plot on styleownscale with no min
max range I assume it doesn't know where to plot. so, you have to add the three extra fields to specify.> > Hope this helps,> GaryI changed this line but still nothing appears. I have this code before//--Indicator-End--line, at the built-in Price indicator. I also copied this code to make this a separate "indicator", but still nothing happens.. still stuck..cheers,BMSend 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 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
Attachment:
For BM.afl
Attachment:
Description: "Description: For BM.afl"
|