NexusFi: Find Your Edge


Home Menu

 





Totally random trading system graphs


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one dutchbookmaker with 7 posts (4 thanks)
    2. looks_two MXASJ with 3 posts (1 thanks)
    3. looks_3 Linds with 2 posts (0 thanks)
    4. looks_4 ThatManFromTexas with 1 posts (0 thanks)
    1. trending_up 9,646 views
    2. thumb_up 5 thanks given
    3. group 4 followers
    1. forum 14 posts
    2. attach_file 5 attachments




 
Search this Thread

Totally random trading system graphs

  #11 (permalink)
 
Lornz's Avatar
 Lornz 
Oslo, Norway
 
Experience: Advanced
Platform: CQG, Excel
Trading: CL
Posts: 1,193 since Apr 2010

Quoting dutchbookmaker

You can see how pointless it is to backtest .


ThatManFromTexas View Post
There... I fixed that for ya....

I second that! I have traded for several years, but never spent to much time backtesting. According to the backtests, I am supposed to be well up in 9 figures now. If only someone could convey this to the market, I would be most appreciative...

And why someone would backtest without transaction costs escapes me...

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Quantum physics & Trading dynamics
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
What broker to use for trading palladium futures
Commodities
 
  #12 (permalink)
 dutchbookmaker 
NYC
 
Posts: 187 since Dec 2010


MXASJ View Post
I'm interested to learn how you did that in Matlab . I've been spending most of my time with R and a package called quantstrat. I have Matlab so any pointers would be great...

Yea I'm done with R...fuck that.

% Nrand = input('How many trades? ');
Trades = 500;
Starting = 5000;
NumCars = 1;
Iterations = 400;
WinPer = .35;
Commision = 3;


CarsPts = NumCars * 5;
YmW = 15 * CarsPts;
YmL = 5 * CarsPts;


Win = 0;
Loss = 0;
Profit = 0;




tradmatr = zeros(Iterations, Trades);
%tradestation - 2.36 perside
for nloops2=1:Iterations
Profit = 0;
for nloops=1:Trades
Toss = rand(1);

if (Toss < WinPer) %winning
Win = Win + 1;
Profit = Profit + YmW;
end
if (Toss > WinPer) %losing
Loss = Loss + 1;
Profit = Profit - YmL;
end
Profit = Profit - Commision;

% v(nloops) = Profit;
tradmatr(nloops,nloops2)= Profit;
end

end
%
% disp(['win: ', num2str(Win)]);
% disp(['loss: ', num2str(Loss)]);
% disp(['profit: ', num2str(Profit - Starting)]);
% disp(['Commision: ', num2str(Commision)]);
% disp(['%: ', num2str(Loss/Trades)]);
% disp(['-----']);
plot(tradmatr);

Reply With Quote
  #13 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800


Plug and play code. Love it...

Reply With Quote
Thanked by:
  #14 (permalink)
 dutchbookmaker 
NYC
 
Posts: 187 since Dec 2010


MXASJ View Post
Plug and play code. Love it...

Please pay me back with some insight.

Reply With Quote
  #15 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800


dutchbookmaker View Post
Please pay me back with some insight.

Buy low, sell high!

Kidding.

I think we are in the same camp where the coin toss represents a system with no edge, commish means you are paying to toss the coin, so you are doomed to failure no matter what money management system you use if you play the game over time.

You need a system with positive expectancy after commissions and other expenses.

What I've been doing in R (and thanks for making me want to try it in Matlab) is to take the daily lognormal returns of my system under test and see how "randomizing" those results would alter my terminal PnL, my MDD, and the various ratios people look at. I then am trying to work out with what level of confidence will I be making a given level returns, or conversely at what level of confidence will I go bust.

Is that a Monte Carlo sim? I have no idea.

I do know I can't do this natively in Ninja as it is a multi instrument basket, so I don't really use the Monte Carlo sim capabilities of Ninja.

BTW most of the bookmakers (er... equity market liquidity providers) in my town are Dutch.

Reply With Quote




Last Updated on April 13, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts