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 argusthome, Yesterday, 10:06 AM
        0 responses
        20 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        18 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        14 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        9 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        40 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X