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

[amibroker] Re: Erratic applystop (update)



PureBytes Links

Trading Reference Links


--- In amibroker@xxxxxxxxxxxxxxx, "Phsst" <phsst@xxxx> wrote:
> 
> Terry <MagicTH@xxxx> wrote:
> > I believe you have to use the equity(1,0); statement to get stops to 
> > show up in charts. Look it up in Help. Insert that line before your
> plot statements...and you must have the symbol you're testing
> selected, which is a problem if your using more than one ticker.
> 
> Tried using equity(1,0);
> 
> The Equity statement does not seem to have anything to do with forcing
> the Exit arrows to display when exits are generated from ApplyStop
> statements.

Try this bit of code..

//Re-calculate sell/cover arrays from application of stops
if (Status("action") != 5) //We don't use Equity(2) for Backtest mode
    Equity(2);

PlotShapes(Buy * shapeUpArrow, colorGreen);
PlotShapes((Sell == 4) * shapeDownArrow, colorRed);






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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