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

SetProfitTarget with one trade per day

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

    SetProfitTarget with one trade per day

    Hi

    I developed a simple system where I have multiple entries (from the same signal) and then 1 exit. I know how to make one single trade per day (with a Boolean variable), but how can I do since I use SetProfitTarget to exit the trade?
    If I did:
    If (Long)
    {SetProfitTarget
    takenTrade = true}
    I would delay the efficacy of SetProfitTarget of 1 bar.
    Any other way to do it?

    Thank you

    #2
    stefy, wouldn't it be sufficient to make the check when you enter? If I follow you correctly, you just want to execute one of your signals for the day whichever occurs first...
    BertrandNinjaTrader Customer Service

    Comment


      #3
      It would be fine if I could still use my 3 entries. But if I check the condition at the entry (after 1 entry), how can the other to entries take place?

      Comment


        #4
        You could use a boolean for each entry then and reset those when a new day begins.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by agclub, 04-21-2024, 08:57 PM
        5 responses
        32 views
        0 likes
        Last Post agclub
        by agclub
         
        Started by ESHunter, Today, 08:06 PM
        2 responses
        16 views
        0 likes
        Last Post ESHunter  
        Started by ETFVoyageur, 05-07-2024, 07:05 PM
        19 responses
        150 views
        0 likes
        Last Post ETFVoyageur  
        Started by ETFVoyageur, Yesterday, 10:13 PM
        3 responses
        26 views
        0 likes
        Last Post ETFVoyageur  
        Started by ETFVoyageur, Yesterday, 12:52 AM
        3 responses
        33 views
        0 likes
        Last Post ETFVoyageur  
        Working...
        X