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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    43 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    47 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X