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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    61 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    148 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    98 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X