Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to access HLOC price by other class being part of the strategy class

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

    How to access HLOC price by other class being part of the strategy class

    Hello.

    I am trying to create a Trading class inside the strategy class responsible for manage a trade (another logic responsible why long/short was executed).

    My problem is that the trade class has no access to High[0], Low[0], etc. If i let it inherent from strategy class, it will pass compilation however NT will crash.

    Is there any reference code of how another class workins with OCHL inside strategy CS file

    Thank You.

    #2
    Hello ezrakoper,

    This would be outside of what is supported by NinjaTrader.

    This thread will remain open for any community members that would like to assist.

    I would recommend passing the instance of the strategy to the other class to use the properties available to the strategy.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X