Developing a Trading System Step by Step

Discussion in 'Strategy Building' started by Murray Ruggiero, Jan 16, 2006.

Do you trade mechanical systems

  1. Yes, I buy and trade commerical systems.

    24 vote(s)
    4.7%
  2. I develop and trade my own systems.

    350 vote(s)
    69.2%
  3. I trade both commerical and systems I develop.

    44 vote(s)
    8.7%
  4. I don't believe in mechanical trading systems.

    88 vote(s)
    17.4%
  1. Murray Ruggiero

    Murray Ruggiero Sponsor

    I am not sure yet, we might try it and see what happens. We also might apply other filters and use a fail safe method also.
     
    #121     Feb 21, 2006
  2. dis

    dis

    What evidence do you have that there is a dominant market cycle?
     
    #122     Feb 21, 2006
  3. Murray Ruggiero

    Murray Ruggiero Sponsor

    In our system we will use the Hilbert Transform to estimate the cycle, you also could use a MEM program like MESA or TradeCycles which I developed for Tradestation or CycleStudio for TradersStudio. These have less lag than Hilbert but there is not code available in the public domain.

    A version of Hilbert code was supplied in John Ehlers book
    "Rocket Science for Traders "
     
    #123     Feb 21, 2006
  4. Xephen

    Xephen

    Murray,

    Is CycleStudio available now?
     
    #124     Feb 21, 2006
  5. Murray Ruggiero

    Murray Ruggiero Sponsor

    It will be available with the Release of 2.0.
     
    #125     Feb 21, 2006
  6. murray - while you are replenishing good and nice ideas - your cd is long on winding talk but very short on real conclusive content
     
    #126     Feb 21, 2006
  7. Murray Ruggiero

    Murray Ruggiero Sponsor

    Here are the optimized results for my adaptive channel breakout system. I originally published this method in Futures Magazine in January 1996. I used a MEM addin from Jurik Research in that article because that was before MESA was available for TradeStation and before I developed TradeCycles.

    I tested this methodology on a small basket of markets and found that 1.4 times the dominant cycle worked best but the profit between 1.2 and 1.4 differed by less than 10% when I ran this back in 1996.

    Last night I ran it on the basket we are using , based on the version of the Hilbert Transform which is included in TradersStudio. I optimized our standard basket from 1/1/80 to 2/21/06. I have included these results in the attachment.

    Here is the logic to my simple system.

    Sub SimpleAdaptiveChannel(Mult)
    Dim MinMove
    Dim ChanLen As BarArray
    Dim ChanWidth As BarArray
    MinMove=GetActiveMinMove()
    ChanLen=Min(CInt(CyclePeriod((High+Low)/2,0)*Mult),100)
    Buy("ChanBuy",1,Highest(High,ChanLen,0)+MinMove ,Stop,Day)
    Sell("ChanSell",1,Lowest(Low,ChanLen,0)-MinMove,Stop,Day)
    End Sub

    Just like in 1996 , profits differ by less than 10% for Mult in the range of 1.00 to 1.75. We ran in steps of .25 so 1.4 was not included in this run, but it should be in the same range +/ a few percent. I selected 1.25 from this run and this system has done very well over the past ten years.

    I have attached the report for the optimization as well as the results for the 1.25 parameter set.
     
    #127     Feb 22, 2006
  8. dis

    dis

    Just because data mining may yield a "dominant cycle" does not mean that one exists.
     
    #128     Feb 23, 2006
  9. Murray Ruggiero

    Murray Ruggiero Sponsor

    That is true , you need to look at the signal to noise ratio which you can get from MEM to see if the cycle is real. What is important is the system I am showing you was developed in 1996!. You can see if has made money for 10 years since release!.
     
    #129     Feb 23, 2006
  10. BENG

    BENG

    How would the model perform after slippage and commission?
     
    #130     Feb 23, 2006