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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        388 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        260 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        218 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        302 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        268 views
        0 likes
        Last Post CarlTrading  
        Working...
        X