Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to tell Ninja Script to STOP trading?

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

    How to tell Ninja Script to STOP trading?

    So I have my first go round at C since college working. Stops and targets are working, the script is entering trades based on my criteria. There are essentally 4 condtions I have to place a trade upon.

    The first to are the buy and sell rules, and they are tied to a specific time of the day.

    The last two are based on just general rules.

    So if for example I wanted to not take another trade after taking 1 trade on the day, how would I do that. So essentially, I am looking for NT to stop looking for any trades on that day the minute a position has been entered.

    Thanks,
    Forrest



    -----EDIT-----
    To clarify, when I said above that there are 4 different conditions, I mean that there a 4 different trade scenarios that occur. So the first two are long/short depending on some criteria early in the day. And then two others long/short that occur later in the day.
    Last edited by forrestang; 08-31-2009, 11:10 PM.

    #2
    Disregard for now, I created a bool that initializes to false each day.

    Then if a trade is entered it get's set to true..... and it must be falst to enter a new trade.

    Thanks,
    Forrest

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X