Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Initial Cash Value

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

    Initial Cash Value

    Hi, is there a way to get the "Initial Cash" Value of the Account in my strategy?

    When i rightclick my account -> edit account , i can see the 100.000 Initial Cash which is my deposit. The CashValue has added all the profit to it.

    I cant find the InitialCash parameter for the AccountItem. The deposit is synchronized with a cloud service but i cant get the correct value.

    I was expecting this:
    Print("InitialCash: "+MonitorAccount.Get(AccountItem.InitialCash, mycurrency));


    thx
    Last edited by Aylin; 03-02-2018, 05:08 AM.
    Aylin
    NinjaTrader Ecosystem Vendor - RealTime Trading Global

    #2
    Hello Aylin,

    Thank you for your post.

    The Simulation Accounts are the only accounts that have the Initial Cash in the Edit Account menu. As you noticed that value is not available through the Account object.

    You would need to create your own internal variable Initial Cash if you wanted to factor Initial Cash in your strategy.

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Barry Milan, Yesterday, 10:35 PM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by WeyldFalcon, 12-10-2020, 06:48 PM
    14 responses
    1,428 views
    0 likes
    Last Post Handclap0241  
    Started by DJ888, 04-16-2024, 06:09 PM
    2 responses
    9 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    41 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Yesterday, 08:51 AM
    2 responses
    16 views
    0 likes
    Last Post bill2023  
    Working...
    X