Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Where's the StopLoss

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

    Where's the StopLoss

    At some point in my script I need to check what price the StopLoss is at. I'm using 'Ticks' to initially set the StopLoss. How can I check this?

    #2
    Hello Bluebeep, Thanks for your post.

    You would need to calculate this with your code. When you say "set a stop loss at x ticks" that means to set the stop x ticks away from your average entry, whatever that price may be. Set up a int variable at the class level that represents the tick value being used, then if you are long, the price the stop will be at will be written as such: var stopprice = Close[0]-TickSize*<number of ticks for the stop>.

    Best regards.

    Comment


      #3
      That makes sense I'll use it. Thanks. However, as a possibility this might help for the future (maybe a feature request, and maybe to make things a bit easier) - there's a line on my screen where the stop-loss is. Give me a hook so I can get it's value. For example: Your.Cool.Stoploss[0]. Would be amazing to grab Your.Cool.Stoploss[1] no?

      Comment


        #4
        Hi Bluebeep, thanks for your reply.

        I will submit a feature request to add a stop loss collection property to easily access stop loss values.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        58 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        34 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        195 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        359 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        281 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X