NexusFi: Find Your Edge


Home Menu

 





getting ninja to calculate sharpe ratios


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one PandaWarrior with 2 posts (0 thanks)
    2. looks_two Fat Tails with 2 posts (0 thanks)
    3. looks_3 Silver Dragon with 1 posts (0 thanks)
    4. looks_4 MadTr8r with 1 posts (0 thanks)
    1. trending_up 4,180 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
PandaWarrior's Avatar
 PandaWarrior 
In the heat
 
Experience: None
Posts: 3,165 since Mar 2010
Thanks Given: 6,329
Thanks Received: 13,408

How do I make ninja calculate a sharpe ratio? I found some programming stuff in the help files but I am not a programmer and do not use back testing. I want it to display the ratio in the results tab after a series of trades. Seems there should be a simple way to do this but after much searching, I cannot figure it out.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Third Circuit Backs Kalshi in Landmark Ruling -- Predict …
Prediction Markets & Event Contracts
Tradeify 3.0 Overhauls Futures Prop Firm Model -- One-Ti …
Funded Trading Evaluation Firms
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
Silver Dragon's Avatar
 Silver Dragon 
Cincinnati Ohio
Legendary Master Data Manipulator
 
Experience: Intermediate
Platform: TastyWorks / NT
Broker: TastyWorks /NT
Trading: FX, Stocks, Options
Posts: 2,088 since Feb 2011
Thanks Given: 6,422
Thanks Received: 5,238


PandaWarrior View Post
How do I make ninja calculate a sharpe ratio? I found some programming stuff in the help files but I am not a programmer and do not use back testing. I want it to display the ratio in the results tab after a series of trades. Seems there should be a simple way to do this but after much searching, I cannot figure it out.

I have done some research on this as well and honestly there is no easy way to calculate SR within Ninja Trader.

The two ways I have come up with is:
  • Using Arrays within Ninja Trader to calculate SR over a certain number of trades or time frame. The standard deviation is bulit into NT and NT uses a Risk Free rate of zero. (See link). So I am assuming it could be done. How NT calculate the Sharpe Ratio? - NinjaTrader Support Forum
  • Use a database or excel externally to calculate SR over a certain number of trades or time frame and then re-import back into NT. obviously this would need to be done in real time to be useful.

I have been messing around with the SQL database option just because I like database's. However, I dont have a working model yet.

Here are some other useful links:

Calculate the Sharpe Ratio with Excel
Sharpe ratio - Wikipedia, the free encyclopedia

SD


nosce te ipsum

You make your own opportunities in life.
Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



PandaWarrior View Post
How do I make ninja calculate a sharpe ratio? I found some programming stuff in the help files but I am not a programmer and do not use back testing. I want it to display the ratio in the results tab after a series of trades. Seems there should be a simple way to do this but after much searching, I cannot figure it out.

Where does NinjaTrader have a "results tab"?

If you have excuted a series of trades, you can select the "Account Performance" tab of the control center, and it shows the Sharpe Ratio of that series of trades.


Reply With Quote
  #4 (permalink)
 
PandaWarrior's Avatar
 PandaWarrior 
In the heat
 
Experience: None
Posts: 3,165 since Mar 2010
Thanks Given: 6,329
Thanks Received: 13,408


Fat Tails View Post
Where does NinjaTrader have a "results tab"?

If you have excuted a series of trades, you can select the "Account Performance" tab of the control center, and it shows the Sharpe Ratio of that series of trades.


Account performance is what I meant...but i've never had NT display anything other than 1


Simplicity is the ultimate sophistication, Leonardo da Vinci


Most people chose unhappiness over uncertainty, Tim Ferris
Started this thread Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


PandaWarrior View Post
Account performance is what I meant...but i've never had NT display anything other than 1

The Sharpe Ratio is based on monthly returns. If you have less than one month of data, you cannot calculate a Sharpe Ratio.


Reply With Quote
  #6 (permalink)
MadTr8r
Chicago
 
Posts: 12 since Dec 2010
Thanks Given: 6
Thanks Received: 3

Does anyone know if theres another way to change the ratios displayed within the results tab, kind of like a settings or options function within NT, to look at other metrics besides Sharpe


Reply With Quote




Last Updated on May 21, 2012


© 2026 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 - Downloads - Top
no new posts