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

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 algospoke, Yesterday, 06:40 PM
    2 responses
    19 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    45 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    181 views
    0 likes
    Last Post jeronymite  
    Working...
    X