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

[amibroker] can't draw trading arrows



PureBytes Links

Trading Reference Links

Good morning forum,

I'am a newcomer into the Ami world and this is my first post in this
forum.

I'am drowned into the faq, help, forum etc.

An example coming from "How to use drag-and-drop charting interface"
help, gives me problems.

I can't draw trading arrows.

The original :
Buy = Cross(MACD(), Signal() );
Sell = Cross(Signal(), MACD() );

pricefield = ParamField("Price Field", 2);
Color = ParamColor("color",colorRed);
style = ParamStyle("style",styleLine,maskAll);
arrows = ParamToggle("Display arrows", "No|Yes",0);
Plot(pricefield,"My Indicator",Color,style);
if(arrows)
{
 
PlotShapes(Buy*shapeUpArrow+Sell*shapeDownArrow,IIf(Buy,colorGreen,colorRed)
);
}

I modified two things :

Buy = Cross(MACD(), Signal() );
Sell = Cross(Signal(), MACD() );
Short = Cross(Signal(), MACD() );
Cover = Cross(MACD(), Signal() );

and

{
PlotShapes(Buy*shapeUpArrow+Cover*shapeUpArrow+Sell*shapeDownArrow+Short*shapeDownArrow,IIf(Buy+Cover,colorGreen,colorRed)
);
}

In Automatic Analysis Settings I don't see in the trade tab, Short nor
Cover. Is it normal or an issue ?

The Properties parameters  Axes & Grid tab is set to show trading
arrows Yes.

Thank you for your help

Reinsley




------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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