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 Franck Z, Today, 09:49 AM
      0 responses
      6 views
      0 likes
      Last Post Franck Z  
      Started by pvtrader, Today, 08:02 AM
      2 responses
      7 views
      0 likes
      Last Post pvtrader  
      Started by Natoc, Today, 03:04 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by Rudy2323, Today, 02:56 AM
      2 responses
      28 views
      0 likes
      Last Post Rudy2323  
      Started by tonynt, Yesterday, 02:07 PM
      1 response
      38 views
      0 likes
      Last Post NinjaTrader_Jason  
      Working...
      X