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

[amibroker] Re: to move the arrow's plot toward another pane.



PureBytes Links

Trading Reference Links

Hello Louis,

I struggle many hours on the trouble.
My first version for the plot of a custom formula gave a flop
(this version was working well in another formula) :
/*shape = IIf(Buy , ExRem(Buy,Sell) * shapeUpArrow, ExRem(Sell,Buy) *
shapeDownArrow );
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low,
High ) );
shape2 = IIf(Cover , ExRem(Cover,Short)* shapeUpArrow,
ExRem(Short,Cover) * shapeDownArrow );
PlotShapes( shape2, IIf( Cover, colorGreen, colorRed ), 0, IIf( Cover,
Low, High ) );
_TRACE("ExRemB = "+ExRem(Buy,Sell)+" ExRemS = "+ExRem(Sell,Buy)+"
Shape = "+shape);
*/

As it was impossible to plot trading arrows into a pane containing a
custom RSI formula, I successed with that breaking down : 

shape = Buy * shapeUpArrow;
shapedn = Sell *shapeDownArrow;
PlotShapes( shape , colorGreen, 0, Null, -0 );
PlotShapes( shapedn , colorRed, 0, Null, -0 );

I added also that at the beginning because the Parameter is resetted :

SetChartOptions(1,chartShowArrows|chartShowDates);

Another point, when my code is bugged and after many corrections,
after a while I save it, I close the pane, I reload it. If the code is
correct the plot is correct. But before that reloading, the same good
code gave a null display. The editor is overflooded by such a stupid
error burst.

Hope it helps.

Regards


--- In amibroker@xxxxxxxxxxxxxxx, "Louis Préfontaine" <rockprog80@xxx>
wrote:
>
> Hi,
> 
> I have somehow the same problem.  In previous AB version, I could
> right-click on the ticker in a backtest and see the green and red arrows
> showing the trades, but now I just see nothing.  Is there a way to solve
> this problem?
> 
> Thanks,
> 
> Louis
> 
> 2008/4/4, reinsley <reinsley@xxx>:
> >
> >   Hi,
> >
> > My "Buy * shapeUpArrow" are calculated and plotted into the RSI pane.
> >
> > I would like to calc buy signal on RSI (as it is) but plot the arrows
> > into the price pane.
> >
> > I got the two chartIDs but no way to find how to move the arrow's plot
> > toward another pane.
> >
> > Any help or link will be appreciate.
> >
> > Regards
> >
> >  
> >
>



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

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/