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

[amibroker] Re: A Buy without a Sell?



PureBytes Links

Trading Reference Links

You can clear the sell signal array and use ApplyStop, so the
backtester will decide when to exit your trades. Like this:

Buy = ...
Sell = 0;
ApplyStop(stopTypeTrailing, stopModePoint, 3*ATR(14), True, True );

You can use ApplyStop more than once if you want more than one kind of
stop.

-Steve

--- In amibroker@xxxxxxxxxxxxxxx, "Ken Close" <ken45140@xxx> wrote:
>
> Curious and basic:  I have a fairly good entry signal, and want to
Buy on
> this signal.  I have no Sell signal, only want to follow a stop to
take out
> the trade.  Initially a percentage stop and then turn it into a trailing
> stop.
>  
> But I can't get around the need for the Sell statement.  As I said,
basic.
>  
> I have tried a BuyP = Valuewhen(Buy, Close,1);
> Then Sell = 0.95 * BPrice < L; 
>  
> But while I see some places where this works, I see lots of other places
> where it did not.  Puzzling.
>  
> Anyone got a simple way to Buy on a signal and then ONLY sell on
violation
> of a stop?
>  
> Thanks,
> Ken
>



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

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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/