Bad Perfomance Trading System.

Discussion in 'Strategy Development' started by swingwaver, Feb 20, 2003.

  1. I make 20 bar breakout system.
    Perfomance ?

    NO GOOD, bad!

    This program has money management.
    If you have good money management, Please tell me.
    ========================================

    I want to try how recover this bad perfomance system with good money management.

    This program is for Tradestation 2000i or (6?).




    {*******************************************************************
    Description : 20 bar Breakout System.
    Perfomance ?
    No good !!

    nakayama@swingwaver.com
    ********************************************************************}

    Inputs:
    AccountSize(100000), {Account size [$]}
    RiskPer(2.0), {Risk fraction [%]}
    Length(20),
    StopLength(10),
    Stopfraction(3),
    TSfraction(3);

    Vars:
    cont_lose(0),
    entryflag(false),
    PrevEquity(0),
    NowAccount(0),
    ii(0),Ntrades(0),
    TrailStop(0),
    PostionSize(0),
    MMsize(0), {Money Management Positon size}
    MMstop(0); {Money Management Stop}

    Arrays:
    Equity[100](0);

    if Ntrades = 0 then begin { Initialize }
    NowAccount = AccountSize/2;
    end;

    MMstop = Average(TrueRange,StopLength)*Stopfraction;
    If MarketPosition = 0 and MMStop <> 0 then begin
    value1=PositionProfit(1);
    If value1 <> Equity[100] and value1 <> 0 then Begin {When New Trades}
    { Make room }
    For ii=0 to 100-1 begin
    Equity[ii] = Equity[ii+1];
    end;
    Equity[100]=value1; { New Profit or Loss}
    NowAccount=NowAccount+Equity[100]; { New Account balance }
    Ntrades = Ntrades + 1;
    end;
    MMsize = Round(NowAccount*RiskPer/100/MMstop,0);
    ii = 0; cont_lose=0;
    while Equity[100-ii] < 0 begin
    if Equity[100-ii] < 0 then begin
    cont_lose = cont_lose + 1;
    end;
    ii = ii + 1;
    end;
    if cont_lose >= 3 then begin
    MMsize = Round(3*NowAccount*RiskPer/100/MMstop,0);
    end;
    {Entries}
    If Close > Highest(Close,Length)[1] then begin
    Buy ("UP") MMsize shares next bar at open;
    end;
    If Close < Lowest(Close,Length)[1] then begin
    Sell ("Dw") MMsize shares next bar at open;
    end;
    end;


    TrailStop = Average(Range,StopLength)*TSfraction;
    {Exits}
    {EntryPrie(0) is Open Entry Point}
    If MarketPosition = 1 then begin
    ExitLong ("MM LX stop") at EntryPrice(0)-MMStop on stop;
    ExitLong ("TrailStop LX") at Highest(High,Length) - TrailStop on stop;
    end;
    If MarketPosition = -1 then begin
    ExitShort ("MM SX stop") at EntryPrice(0)+MMStop on stop;
    ExitShort ("TrailStop SX") at Lowest(Low,Length) + TrailStop on stop;
    end;
     
  2. If it is so bad, why not trade the opposite side? :D
     
  3. I took a glance at it on a few stocks over the past 500 daily bars - it looks alright. The absolute numbers are really ok on some stocks - ie SEE , GM. Personally I couldn't stomach the drawdowns, but that's a question of personal preference, right. I don't see what your problem with this program is?
     
  4. eeeeengleesh not first language my being is, tommy.

    TradingStations codey-wise sorts umpa-lumpa shortsales no likely p/l yes?

    sheesh

    PS Porkypines weighty-loaded down is bricks maybe, sinks he does, floatywoaty not, young jedi.
     
  5. that insulting Wapper2.

    Wapper2, let's see how well you post in this guy's native language - doubt you'd do much better.


    Swingwaver, could you be more specific about what kind of money management you'd like to implement? Also, what time frame are you working in, and on what securities?
     
  6. If you have a bad system, money management is not going to fix it.
    In order for anyone here to critique/offer help you should also disclose what security(ies) or index it is designed to trade, and also paste a trade station performance summary to start with.
     
  7. just trying the mood be lightning is I young jedi. To the dark side have you gone, thinks me from them 'waddy-wadda' poems you writing be...
     
  8. stu

    stu

    haha Wappers2 ......too funny dude :D

    He is doing :D
     
  9. trading leadings be to fear
    fear leadings be to anger
    anger leadings be to hate
    hate is being leading to working at a prop firm.