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

Re: [amibroker] PlotShapes problem.



PureBytes Links

Trading Reference Links

Jan

Check out the Plotshapes in the Help file, then try this.

MA1 = EMA(C,10);
MA2 = EMA(C, 30);

Plot(C,"", 16,64);
Plot(MA1,"", 17, 1);
Plot(MA2,"", 18,1);

XUP = Cross(MA1,MA2);
XDN = Cross(MA2,MA1);

PlotShapes( IIf(XUP,shapeUpArrow,Null),colorGreen, 0, L, -20); // plots 
green arrow in default layer (0), 20 pixels below the Low
PlotShapes( IIf(XUP,shapeUpArrow,Null),colorLime, 0, MA2, -35); // plots 
lime arrow in default layer (0), 35 pixels below the MA2 value
PlotShapes( IIf(XUP,shapeDownArrow,Null),colorRed, 2, H, -45); // plots 
red arrow in Daily chart layer (2), 45 pixels above the High
PlotShapes( IIf(XUP,shapeDownArrow,Null),colorPink, 3, H, -35); // plots 
pink arrow in weekly chart layer (3), 35 pixels above the High

Works for me back to 2000 whether I am zoomed in or out, scroll or not.

Regards

ChrisB






Jan Malmberg wrote:
>
> Hello,
>
> I now have a few new problems with PlotShapes, but managed to get 
> ahead well with the help I received previously.
>
>    1. If I use my indicator from, say, 2000, the arrows from the
>       indicator unfortunately disappear when I scroll and zoom in to
>       present times. As a matter of fact, using a date in early 2000
>       as the start date for the indicator’s calculations and plots,
>       the arrows seem to disappear when I narrow the window down to
>       2001-2008.
>    2. How do I get the PlotShapes arrows to respect the candlestick
>       upper and lower shadows, so they do not appear just below
>       closing price but instead below the candlestick’s deepest part,
>       so to say?
>    3. The arrows do not appear in weekly or monthly charts. This to me
>       is a bit strange since the calculation depends on bars, not
>       actual days. Perhaps the problem lies in selecting a day as a
>       start date for the plot. Could that be it? Anyway, it is not a
>       major issue right now.
>
> There are a few other issues, but I am tired and cannot express them 
> in an intelligible way right now. Had something to do with shifting 
> stuff into future territory, perhaps XShift does it, I do not know. 
> Must sleep now.
>
> Best regards / JM
>
>  

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

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/