Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Daily returns

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Daily returns

    Dear Support !

    I would like to calculate the "optimal" leverage for my strategy. ( a kind of Kelly's optimal f )

    I need the daily returns of the strategy as a basis.

    Can you help me to figure out how I can get that from the Trade objects ?

    Thank you,
    Arnold

    PS: I assume Strategy Analyzer/Periods/Period : Daily/Avg.Trade is that I am looking for from Ninjascript.
    Last edited by arnold.horvath; 09-22-2013, 12:39 PM.

    #2
    Hello Arnold,

    Thank you for your post.

    You can use Performance.RealTimeTrades to pull only the performance values or the trades for the current day since the strategy was enabled at the following link: http://www.ninjatrader.com/support/h...timetrades.htm

    If you wish to view historical trade data day by day rather than only in real-time you can use our reference sample on stopping a strategy after consecutive losers to build your own values for each day historically. You can find this reference sample at the following link: http://www.ninjatrader.com/support/f...ad.php?t=19289

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    661 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    375 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X