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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    133 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X