Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to specify an order price with a variable?

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

    how to specify an order price with a variable?

    the following two orders work for me.
    please tell me how to specify a variable price rather than a constant price.

    EnterLongLimit(
    1, 1.31);
    EnterShortStop(1, 1.32);

    #2
    Joemiller,

    There are multiple ways to have a variable price.

    You would need to set a variable and build any conditions that would set the value of that variable.
    Note that the price is a double value.

    Take a look at the Data section of the NInjaScript Help Guide on some ways to set the price -
    Data
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    117 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    165 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    85 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    130 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    88 views
    0 likes
    Last Post PaulMohn  
    Working...
    X