Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scaling in

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

    Scaling in

    Hi I wonder if someone could help me out with this please.
    I am developing a strategy to buy/sell and hold subsequently add to longs on dip (but at a higher price that paid earlier etc),
    The software is rebuying and reselling but doing it in the next bar (when the conditions are still right). My intention is not to allow a second entry within say 10 bars of previous entry. I am using this coding to prevent re-entry:
    if ((BarsSinceEntry() > 10 || BarsSinceEntry() == -1)
    and other conditions
    then action
    but I suppose that is too simplistic. Any ideas gratefully received.
    Thanks
    jmsUK

    #2
    Hello jmsUK,
    Welcome to the forum and I am happy to assist you.

    To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

    Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

    I look forward to assisting you further.

    *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, Yesterday, 04:31 AM
    0 responses
    31 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    286 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    283 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    132 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    91 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X