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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    63 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    54 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    61 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Working...
    X