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

how to set a quantity to buy?

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

    how to set a quantity to buy?

    Hi i am using the strategy builder and how can i set a quantity standard like this: i am having $1000 as my budget and i want to use up the 1000 dollars, round to the most shares i can buy?
    in other words the system will calculate the correct quantity to buy by itself by exhaust the $1000 to the most. how can i code this strategy? i tried to put 1000/GetCurrentBid() into the strategy builder but it cannot recognize it. Please help me out! Thanks!!!!!!

    #2
    Hi light7801, unfortunately this is not directly supported in the wizard, you could calculate the position size needed via custom coding in NinjaScript.

    For an approximation of working based on margin / account size settings, you can use the 'ByAccountSize' mode to determine order qty -

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by briansaul, Today, 05:31 AM
    0 responses
    1 view
    0 likes
    Last Post briansaul  
    Started by fwendolynlpxz, Today, 05:19 AM
    0 responses
    4 views
    0 likes
    Last Post fwendolynlpxz  
    Started by traderqz, Yesterday, 12:06 AM
    11 responses
    28 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by PaulMohn, Today, 03:49 AM
    0 responses
    8 views
    0 likes
    Last Post PaulMohn  
    Started by inanazsocial, Today, 01:15 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X