Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter +1 Contract as strategy parameters are met

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

    Enter +1 Contract as strategy parameters are met

    Initial entry is tied to firstbarofsession and enters 1 contract. From there, i have a series of reversal parameters and i would like to add +1 contract for each reversal parameter met.

    Example: Short 1 Contract, Long 2 contracts, short 3 contracts, long 4 contacts etc. Every time a reversal parameter is met, it enters existing quantity of contracts +1

    I have tried multiple times, and even enlisted the help of others to accomplish this. NT support offered up some script snippets that should accomplish this, BUT they enter all contracts that would have historically calculated on the chart. So my first entry took off with 176 contracts lol. Since my initial entry is 1 contract and tied to first bar of session, i want a script that would then look at current quantity of contracts and then +1 from there on throughout the trading session.

    Is anyone able to offer some code snippets that would accomplish this task? Thanks

    #2
    Hello joshmock89,

    Thanks for your post.

    Scaling into a position is controlled with the signal names of your strategy, and properties EntryHandling and EntriesPerDirection. This reference sample can help with scaling in and out of a strategy.
    https://ninjatrader.com/support/helpGuides/nt8/en-us/scaling_out_of_a_position.htm

    This sample can assist further with managing multiple exit/entry signals:
    https://ninjatrader.com/support/helpGuides/nt8/en-us/using_multiple_entry_exit_sign.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X