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

Re: [amibroker] Backtest buy signals



PureBytes Links

Trading Reference Links

you could try something like this

buysig = BuyConditions;
sellsig = SellConditions;
InTrade = flip(buysig,sellsig);// has value 1 between the defined events
buy = InTrade and ref(InTrade,-1)==0;
Sell = SellSig;

another could be the use of exrem with the buysig,sellsig
buysig = BuyConditions;
sellsig = SellConditions;
buysig=exrem(buysig,sellsig);
buy=buysig;
sell = sellsig;

try both with a scan or exploration or plotshapes on chart to see results

On 7/22/05, tkoinaustin <tkoinaustin@xxxxxxxxx> wrote:
> Is there a way to prevent generating a buy signal in the backtester /
> automatic analysis window if the symbol in question is already in a
> long position. ExRem(Buy,Sell) does not seem to work, I still get
> repeated buy signals. Is there a command I can use to determine if the
> signal is currently in a trade? TIA.
> 
> Tom
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
AB-Write AFL Writing Service
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/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/