Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

{NinjaScript} - EnterLongStopMarket

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

    {NinjaScript} - EnterLongStopMarket

    Hello, I have this code:

    EnterLongStopMarket(10000,1.1340,"StopBuy");
    SetStopLoss("StopBuy",CalculationMode.Price,1.1340-0.0030,false);
    SetProfitTarget("StopBuy",CalculationMode.Price,1. 1340+0.0030);

    But generates a new trade every time that price hits 1.1340, and I need to be excecuted only one time, first time.
    Can you help me?
    Some sample code?

    #2
    Hello fscabrera03, thanks for writing in.

    We have an example here showing how to limit the number of trades per session, then resetting the values at the beginning of each new session:

    https://ninjatrader.com/support/help...the_beginn.htm

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    619 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    561 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    566 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X