Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

bars since entry

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

    bars since entry

    Im trying to set a stop loss at the lowest low at the time of entry. I have just made a simple strategy in the wizard and unlocked it. I only need to adjust this stop loss.

    I am thinking that this might be on the right track

    ExitLongStop(MAX(Low, 10)[this.BarsSinceEntry], "", "")

    However I get the following error
    Argument '1': cannot convert from 'method group' to 'int'

    Is this just a case of needing to change the code somewhere from 'int'?

    #2
    The editor intellisense and the docs will show you that your code should read:
    ExitLongStop(MAX(Low, 10)[this.BarsSinceEntry()], "", "")

    Comment


      #3
      Thanks Dierk, now works like a charm!!

      Comment

      Latest Posts

      Collapse

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