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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X