Hi all,
I am in the midst of developing my first system and seemed to be having some great results (unrealistically so??) until I changed a setting in the ApplyStop function I am using.
The line of code changes my CAR from being highly positive (46% up to 214%) to be very small or negative (6% down to -68% ). These results are based on the ASX for the 2009 calendar year. I have run each setting approximately 10 times using position score to provide a crude monte carlo test. The troublesome line is below -
Winning line:
ApplyStop( stopTypeTrailing, stopModePoint,TrailAmount, 2, True )
Losing line:
ApplyStop( stopTypeTrailing, stopModePoint,TrailAmount, 1, True )
My understanding of the difference is that the 'winning' line will sell the following day if my stop is hit (at open), while the 'losing' line will sell on the day and at the stop price.
My system is a simple trend system with 3 key criteria - highest high after x days, liquidity test and a momentum check. There hasn't been a lot of optimisation.
Can anyone see any obvious flaw that I am missing? I have started comparing trade for trade between the two, but nothing stands out.
Reference info regarding the ApplyStop function -
ExitAtStop = 0 - means check stops using only trade price and exit at regular trade price
(if you are trading on close it means that only close price will be checked for exits and exit will be done at close price)
ExitAtStop = 1 - check High-Low prices and exit intraday on price equal to stop level on the same bar when stop was triggered
ExitAtStop = 2 - check High-Low prices but exit NEXT BAR on regular trade price.
I am in the midst of developing my first system and seemed to be having some great results (unrealistically so??) until I changed a setting in the ApplyStop function I am using.
The line of code changes my CAR from being highly positive (46% up to 214%) to be very small or negative (6% down to -68% ). These results are based on the ASX for the 2009 calendar year. I have run each setting approximately 10 times using position score to provide a crude monte carlo test. The troublesome line is below -
Winning line:
ApplyStop( stopTypeTrailing, stopModePoint,TrailAmount, 2, True )
Losing line:
ApplyStop( stopTypeTrailing, stopModePoint,TrailAmount, 1, True )
My understanding of the difference is that the 'winning' line will sell the following day if my stop is hit (at open), while the 'losing' line will sell on the day and at the stop price.
My system is a simple trend system with 3 key criteria - highest high after x days, liquidity test and a momentum check. There hasn't been a lot of optimisation.
Can anyone see any obvious flaw that I am missing? I have started comparing trade for trade between the two, but nothing stands out.
Reference info regarding the ApplyStop function -
ExitAtStop = 0 - means check stops using only trade price and exit at regular trade price
(if you are trading on close it means that only close price will be checked for exits and exit will be done at close price)
ExitAtStop = 1 - check High-Low prices and exit intraday on price equal to stop level on the same bar when stop was triggered
ExitAtStop = 2 - check High-Low prices but exit NEXT BAR on regular trade price.