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

infinite value ?

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

    infinite value ?

    Code:
    protected override void Initialize(){
         EntriesPerDirection=[B]1000[/B];
    }
    In this case, instead of writing down a high value, is there a key word to mean "Infinite" as in "as much entries per direction as possible"?

    Something along those lines

    Code:
    protected override void Initialize(){
         EntriesPerDirection=[B]Infinite[/B];
    }
    ?

    #2
    Hello,

    Because EntriesPerDirection takes an int value, you will have to assign it a large value if you wish to use a very large number of entries.

    You may want to look into using Int32.MaxValue however keep in mind there may be various order rejection and margin issues that you may run into along the way when trading this many entries.

    Please let me know if I can be of further assistance.
    Last edited by NinjaTrader_Lance; 01-02-2013, 09:00 AM.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by OllieFeraher, 05-09-2024, 11:14 AM
    6 responses
    19 views
    0 likes
    Last Post OllieFeraher  
    Started by PaulMohn, 05-02-2024, 06:59 PM
    2 responses
    42 views
    0 likes
    Last Post PaulMohn  
    Started by ETFVoyageur, Today, 02:10 AM
    0 responses
    10 views
    0 likes
    Last Post ETFVoyageur  
    Started by rayyyu12, Today, 12:47 AM
    0 responses
    8 views
    0 likes
    Last Post rayyyu12  
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    17 responses
    137 views
    0 likes
    Last Post ETFVoyageur  
    Working...
    X