Announcement

Collapse
No announcement yet.

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...

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        64 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X