RandomTrader backtest tool/free code

Discussion in 'Strategy Development' started by RandomZen, May 20, 2009.

  1. The free tool runs in NinjaTrader (also free).

    Test as many combinations as you can before putting your hard earned dollars at stake.

    I've posted the ninjascript code in both text format and as a ninja zip file. Ninja users know it is more convenient to just upload the strategy. The zip file is 100% SAFE.


    1. Get a feel for optimal trade parameters by randomizing some or all of the trade settings.

    2. Time of entry: this should be any number from 1 through 380, the minutes of the trading session (minus 10 minutes).

    3. To enter a fixed (non-random) value, put in the same number in ‘min’ and ‘max’.

    For example, you want the trade to be taken at minute # 200 of the trading session. Each of ‘Time of Daily Entry Max’ and ‘Time of Daily Entry Min’ should be set to 200.

    4. To enter a randomized value, type in the range from which you want the random value to be selected.

    For example, you want the trade to be taken randomly within the first half hour of the session, type in ‘Time of Daily Entry Max’ = 30, and ‘Time of Daily Entry Min’ = 1.

    5. Random long/short trigger. To randomize the long/short decision, select ‘true’ for each of the ‘TradeLong’ and ‘TradeShort’.

    6. Note the parameters remain the same throughout one run (i.e., for each push of the ‘backtest’ button), they are not re-generated for each individual trade.

    7. ‘One trade in X bars’. Use this only if you want to take a trade less frequently than once per day. Otherwise this should be kept at 0.
  2. gasy


    WARNING, this file is trojan and will get your account passwords
  3. Stefo


  4. NOT TRUE! the file is 100% SAFE. I'm not sure why someone would want to sabotage my RandomTrader posting, a handy learning tool

    gary, stefo - why don't you guys post you trading P/L for 2008. This will probably show that there's no reason for anyone to try to steal YOUR brokerage passwords.