Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Increase position when I get a objetive

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

    #16
    Hello ziquillo,

    Thanks for your reply and clarification.

    So your situation is that you enter a position and you have no stop. When your profit reaches +1% of your entry then you want to apply a trailing stop of 0.1%.

    To do that you will have to use your logic to calculate the 1% level and once price has reached that level, in OnBarUpdate() you would have to enable the SetTrailStop.

    You see, when you put the SetTrailStop in the initialize method it immediately places the trailstop as soon as you enter but this is not what you want. So you will have to apply the SetTrailstop in the OnBarUpdate when price reaches the +1% level.

    You can certainly tie each trailstop with each entry by using the signals names.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    638 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X