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

[amibroker] backtest - multiple buys



PureBytes Links

Trading Reference Links


I think I'm doing something dumb or have a setting set that I'd like 
to change.

If I back test a system and the buy signal is triggered 4 times 
before a sell signal, my system currently only buys the first time.

How can I change this so it buys even if there is no sell signal to 
close out the first one.

I set up a simple test just to make sure it wasn't something dumb in 
my code.  For instance, I'm looking at a stock that is < 42 and > 40 
for a few hours.

If I'm working in 15 minute increments and use the following code:

Buy = Open < 42;
Sell = Open > 45;
Short = Open > 50;
Cover = Open < 35;

I should get a bunch of buy signals, but I"m only getting one.

THanks; sorry since I think this should be simple.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/