Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 ETFVoyageur, Today, 12:52 AM
    1 response
    9 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by Tin34, Today, 03:30 AM
    0 responses
    4 views
    0 likes
    Last Post Tin34
    by Tin34
     
    Started by lollers, Today, 03:26 AM
    0 responses
    6 views
    0 likes
    Last Post lollers
    by lollers
     
    Started by aliyahany, Today, 03:16 AM
    0 responses
    1 view
    0 likes
    Last Post aliyahany  
    Started by mariajvillarrealr, Today, 02:57 AM
    0 responses
    1 view
    0 likes
    Last Post mariajvillarrealr  
    Working...
    X