Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Syntax assistance

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

    Syntax assistance

    I'm using the latest version of NT and I'm trying to identify the lowest down bar in a group of bars for a strategy. When using the LowestBar command it may identify an up, down or flat bar. Are there any commands which I can use to accomplish this, or could you point me to a code snippet that would handle this?

    Thanks for your time.

    Safetrading

    #2
    Your understanding here is unfortunately correct Safetrading, LowestBar would really only give you the bar with the lowest value seen but it could be closing in either direction. You would need to create custom code here to track what you seek, you could add a qualifier for checking if the bar found is a down bar and if not, just reach further back until you get a hit.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    19 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Working...
    X