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 argusthome, Yesterday, 10:06 AM
    0 responses
    18 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    17 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    38 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X