In search of win-loss-win-loss-win -strategies
Forums › ProRealTime English forum › ProOrder support › In search of win-loss-win-loss-win -strategies
- This topic has 2 replies, 2 voices, and was last updated 4 years ago by JohnScher.
-
-
03/29/2020 at 9:01 PM #123842
In search of win-loss-win-loss-win -strategies
Here is an example
Code
D1 Lo 08/10 M1123456789101112131415161718192021222324252627282930313233343536373839//-------------------------------------------------------------------------// OnlyLong-Strategy on the Dax// Timebased//// Maincode : D1 Lo 08/21 M1//// Dax 1 Euro Mini// Timezone europe berlin// Timeframe 1H// Created by JohnScher//-------------------------------------------------------------------------//run only one orderdefparam cumulateorders = false// positionsizeOnce ordersize = 1// define starttimeTradingDayShort = Opendayofweek = 1 //or Opendayofweek = 3 //or Opendayofweek = 3 or Opendayofweek = 4 or Opendayofweek = 5TradingTimeShort = time >= 080000 and time <= 100000// conditionsc1 = (close) < Exponentialaverage [200] (close)c2 = close > close [1]//maincodetradebuy = TradingDayShort and TradingTimeShort and c1 and c2If Tradebuy thenbuy ordersize contracts at marketEndif// conditions exitset stop %loss 1set target %profit 1You can see in the backtest a slight gain over many years. In itself nothing unusual. See attached no1 – the upper curve .
You can also see that winning and losing positions alternate quite regularly. Maximum sequence of lost trades = 3, maximum sequence of won trades = 4. See attached no2.
This gives me the chance to use the martingale (very dangerous i know):
Code
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556//-------------------------------------------------------------------------// OnlyLong-Strategy on Dax// Timebased//// Maincode : D1 Lo 08/21 M1 with martingale//// Dax 1 Euro Mini// Timezone europe berlin// Timeframe 1H// created by JohnScher//-------------------------------------------------------------------------//run only one orderdefparam cumulateorders = false// positionsizeOnce ordersize = 1// define starttimeTradingDayShort = Opendayofweek = 1 //or Opendayofweek = 3 //or Opendayofweek = 3 or Opendayofweek = 4 or Opendayofweek = 5TradingTimeShort = time >= 080000 and time <= 100000// conditionsc1 = (close) < Exponentialaverage [200] (close)c2 = close > close [1]//maincodetradebuy = TradingDayShort and TradingTimeShort and c1 and c2If Tradebuy thenbuy ordersize CONTRACTS AT MARKETEndif// set martingaleOnce exitindex = -1If Longonmarket thenexitindex = barindexEndifIf barindex = exitindex +1 thenExitindex = 0If PositionPerf (1) < 0 thenOrdersize = ordersize + 1Elsif PositionPerf (1) >= 0 thenOrdersize = max (Ordersize - 1,1)EndifEndif// conditions exitset stop %loss 1set target %profit 1The results are quite better then without martingale. See attached no1 – the lower curve.
And now my question.
Which of you have come across strategies that show these win-loss-win-loss-win-loss results? At best, the win-loss sequence has a clear sine wave, so really or in the very close to: win-loss-win-loss-win-loss-win-loss. And if so, can you put them in here? And if not, where can I find them?
kind regards
JohnScher
Translated with http://www.DeepL.com/Translator (free version)
03/30/2020 at 7:06 AM #123866JohnScher – You posted your topic in the Platform Support forum. The correct place for it is the ProOrder forum as it is a strategy related topic. I have moved your topic to the correct forum. Please try to be more careful with your future topics to ensure that they are posted in the correct forum.
04/04/2020 at 3:51 PM #124621 -
AuthorPosts
Find exclusive trading pro-tools on