Stockalyze

STOCKALYZE => General Discussion => Topic started by: Marcelo on October 15, 2019, 05:35:52 PM

Title: How to avoid simultaneous long/short position in a trade system?
Post by: Marcelo on October 15, 2019, 05:35:52 PM
Hi I'm trying to evaluate a tradesystem but I don't want to open multiple long/short position. How can I do that?
Thank you
Title: Re: How to avoid simultaneous long/short position in a trade system?
Post by: Sacha on October 16, 2019, 09:45:19 AM
QuoteI don't want to open multiple long/short position. How can I do that?
Not sure I understood your question. During testing of a Trading System for a security only one position is created at any point of time. Once that position is closed then only new position is opened whenever there is new signal. So, it is already at most one position at any point of time. Did you mean something else? Please let me know.

One point here to note is that as of now backtesting only opens long positions. You can have a Trading System that can generate signals for long and short both and you can screen stocks for all sorts of signals but backtesting only tests long positions. That in future can change of course.
Title: Re: How to avoid simultaneous long/short position in a trade system?
Post by: Marcelo on October 17, 2019, 07:11:39 AM
Hello Sasha, thanks for the quick reply. You're right, only one position is opened for backtest runs. I got confused when I added buy/sell signals on the eod chart from a trading system, in this case all signals are displayed.I thought the backtest data was displayed on the chart when I added buy/sell signals.

Thanks
Marcelo

Title: Re: How to avoid simultaneous long/short position in a trade system?
Post by: Sacha on October 17, 2019, 02:32:37 PM
Cool.
Also while plotting buy/sell signals you can chose not to display all signals. See attached image.