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 Haiasi, Today, 06:53 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottWalsh, Today, 06:52 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottW, Today, 06:09 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ftsc2022, 10-25-2022, 12:03 PM
    5 responses
    256 views
    0 likes
    Last Post KeyonMatthews  
    Started by Board game geek, 10-29-2023, 12:00 PM
    14 responses
    244 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X