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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X