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
Size:
Color:
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.
Size:
Color:
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):
Size:
Color:
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?
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
You are right. Thanks very much for your help.
Size:
Color:
You're welcome.
Size:
Color: