My strategy's holding periods are brief and don't conform to my exit rules
Author: aretemlehm
Creation Date: 12/13/2017 5:44 PM
profile picture

aretemlehm

#1
New to the system and testing out to familiarize myself. On exits, I am taking 10% profits (target) or taking 4% losses (stop rule) both long and short. However when I run the strategy and examine the actual trades, the holding periods are brief and I don't see any exit trade activity that conforms to my settings. Sometimes the positions are closed as early as the following session well within the confines of my parameters. I would think the positions would be held until one of the two exit rules is met.

Blaming myself, but looking for guidance. There does not appear to be much in the way of technical support other than the forum.

The entry rules are simple.......buy (short) at market when stock makes a new high (low) on a lookback period of 20 days. I assume the period of 20 matches the data I am importing, which is daily.

Thanks
profile picture

Eugene

#2
QUOTE:
However when I run the strategy and examine the actual trades, the holding periods are brief

Help us help you. Please copy and paste your Strategy to determine where the problem lies in your code. Also, tell us which stock symbol it's applied to and the data range. Thanks.
profile picture

aretemlehm

#3
CODE:
Please log in to see this code.

I am applying the strategy to a proprietary list of 200 large cap US equities. Here is a sampling of some of the trade (image):


profile picture

Eugene

#4
That's a start. The code (exported from Rules) looks correct to me. Now, which symbol(s) and date (precisely) is where you don't see any exit trade activity that conforms to my settings?
profile picture

aretemlehm

#5
I included a picture of some of the actual trades as an attachment to my response. Per the rules, I would be exiting a position with a trigger of either a 10% gain or a 5% loss. At least that was my idea. If once put on the price remained static I assume it would be held for an indefinite period of time (hypothetical). But I see exits at values of between -5% and +5%. I am using price stops and not dollar stops I believe.
profile picture

Eugene

#6
CODE:
Please log in to see this code.

Per the rules, you are exiting at trailing stop - not at stop loss. That's a logic different from your assumption - rather trailing a fixed % below the highest high (and vice versa for shorts) achieved since the position was opened.
profile picture

aretemlehm

#7
You are right. Thanks very much for your help.
profile picture

Eugene

#8
You're welcome.