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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X