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()], "", "")

    http://www.ninjatrader-support.com/H...inceEntry.html
    DierkNinjaTrader Customer Service

    Comment


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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by AbigailAvery, Today, 09:14 PM
      0 responses
      1 view
      0 likes
      Last Post AbigailAvery  
      Started by ybhx0315, Today, 09:06 PM
      0 responses
      1 view
      0 likes
      Last Post ybhx0315  
      Started by parkinsonbr, Today, 08:23 PM
      0 responses
      3 views
      0 likes
      Last Post parkinsonbr  
      Started by jc.am, Today, 07:59 PM
      0 responses
      3 views
      0 likes
      Last Post jc.am
      by jc.am
       
      Started by i2w8am9ii2, Today, 04:36 PM
      2 responses
      13 views
      0 likes
      Last Post i2w8am9ii2  
      Working...
      X