Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Profit taken

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

    Profit taken

    Hi
    this might seem impossible. I want to set so if I have like 10 point gain or more, my least point gain is 10 point.

    I know you might say set trail stop but I don't want it to work like that. I want it to keep trading until I hit my selling point by using some indicator. But say if it gain 50 points but it won't sell, I want to make sure I would at least capture 10 point gain.

    Basically when I play 5m timeframe, by the time my bot sell, it wait till next candle and it can be late.

    Thank you

    #2
    Hello, thanks for posting.

    The best way to do that would be a SetTrailStop which will stay x ticks behind the market price. If you wanted some other behavior you would need to implement custom order movement logic with ExitLongLimt/ExitShortLimit. You can use the ChangeOrder method to change the order to the desired price level:



    Best regards,
    -ChrisL

    Comment


      #3
      Ahh I was wonder what are those are for. Lol thank you.

      One question if you can help me. I set a trading time from 930am to 330pm and it work great. But when I set 7pm to 8am, I won't trade, im I doing something wrong?

      Comment


        #4
        Hi, thanks for your reply.

        If you add a Print method within your condition you can check if the condition is being reached e.g.

        if(<time fileter condition>)
        {

        Print("Making Trade");
        EnterLong();

        }

        Using Print methods should be a common part of the debugging process of all scripts:


        Best regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        556 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X