This Might Be Stupid???

Discussion in 'Strategy Building' started by wdbaker, Sep 23, 2002.

  1. wdbaker

    wdbaker

    Here is the system,
    basic moving average system with ROC to validate

    Let me know if it is good or not and if ok what we can do to improve it. Also if you improve it so much that you can't stand to post it then please at least pm me with it and I won't post it.
    There could be a # of things wrong with it, just not sure what they are, will have a better idea once somebody codes it in a different backtester. I have just begun using amibroker so might be coded wrong.


    Lets have fun with this,
    wdbaker

    ___________________________________________

    Filter=TimeNum()>=080000 AND TimeNum()<=150000;
    PositionSize=2500;

    //*Buy___________________________________*//

    test1= Filter AND MA(Close,5)>MA(Close,30) AND MA(Close,5)>MA(Close,50) AND ROC(MA(Close,50),2)>.09 ;

    Buy=test1;
    Sell=Cross(MA(Close,50),MA(Close,10))OR TimeNum()>150000;

    //*Sell___________________________________*//



    test2=Filter AND MA(Close,5)<MA(Close,30) AND MA(Close,5)<MA(Close,50) AND ROC(MA(Close,50),2)<-.045;
    Short=test2;
    Cover=Cross(MA(Close,10),MA(Close,50))OR TimeNum()>150000;
     
    #11     Sep 23, 2002
  2. a chart that shows the buy and sells would be handy.
     
    #12     Sep 23, 2002
  3. wdbaker

    wdbaker

    The chart would cover 1 1/2 years of data and so the buy and sells would not be readable, I believe the buy and sells were listed in my first posting, will see if I can post them in a table.

    wdbaker
     
    #13     Sep 23, 2002
  4. wdbaker

    wdbaker

    Hope this helps

    wdbaker
     
    #14     Sep 23, 2002
  5. wdbaker

    wdbaker

    test1= Filter AND MA(Close,5)>MA(Close,30) AND MA(Close,5)>MA(Close,50) AND ROC(MA(Close,50),2)>.09 ;

    Ma(close,5) =means 5bar sma of the close etc....

    roc(ma(close,50),2)= rate of change between current 50 bar sma and previous 50 bar sma etc...

    when it says cross it means when the first sma cross the second sma

    hope this helps
    If you have additional questions just yell

    wdbaker
     
    #15     Sep 23, 2002
  6. Needs to be tested over at least 4-5 years.
     
    #16     Sep 23, 2002
  7. wdbaker

    wdbaker

    That would be nice but don't have that much data :(

    equity curve looks pretty nice though

    wdbaker
     
    #17     Sep 23, 2002
  8. ZZZ

    ZZZ

    I don't have tradestation or any backtesting capabilities yet... but here are some possible suggestions... one way to make sure the system is not curvefit is to try and vary the parameters you have e.g. try MA(close,3 or 4 or 6 or 7 etc) ... try changing the period of the MA's as well as the ROC parameters...

    a good system should be stable across a fair range of values and not jump sporadically from profitability to loss.
     
    #18     Sep 23, 2002
  9. wdbaker

    wdbaker

    It does seem fairly stable accross various changes, doesn't always make as much money but continues to work, seeing the equity curve is what suprised me, there aren't any huge dents in the curve like you would find if overfit or all the money came from one trade.

    wdbaker
     
    #19     Sep 23, 2002
  10. wdbaker

    wdbaker

    Something else that I am noticing is that some of the biggest losses come when it takes a trade at 8:00 am on a gap, normally you would be watching this to confirm weather to establish a position or not. So if we pull those out that makes for an even better looking system.

    wdbaker
     
    #20     Sep 23, 2002