NexusFi: Find Your Edge


Home Menu

 





Help with NT8 C# Strategy - Daily High and Low function


Discussion in NinjaTrader

Updated
    1. trending_up 1,574 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
guizera's Avatar
 guizera 
Monforf-les-Bains/Luxembourg
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: Futures: E-Mini ES, Crude CL
Posts: 11 since Sep 2016
Thanks Given: 6
Thanks Received: 2

Hello experts,

That`s my first post, sorry if it`s in a wrong section.

I`m developing a strategy based on daily High, Low and Last Close prices. I'd like to check the price change and get those prices to define my entries.

The Market Analyzer give those information, as well the SuperDOM. I tried to use the OnMarketData event, but it`s only listed when the MarketDataType is related to that field. I can only get DailyHigh price when it changes and a DailyHigh update is triggered.

Is there a way to instantiate these values? Or what is the best way to get them?



Thank you in advance.

Cheers!

Gaspah


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
The Ceasefire Curve: 2pct Peace by Next Week, 60pct by S …
Prediction Markets & Event Contracts
El Clasico Draws $9.2M in Prediction Market Action -- Bi …
Prediction Markets & Event Contracts
Zytrade: Devin Brady, CEO - Ask Me Anything (AMA)
Brokers
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
guizera's Avatar
 guizera 
Monforf-les-Bains/Luxembourg
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: Futures: E-Mini ES, Crude CL
Posts: 11 since Sep 2016
Thanks Given: 6
Thanks Received: 2


DevelopingNT View Post
Use this:
 
Code
double dailyHigh = High[HighestBar(High, Bars.BarsSinceNewTradingDay)];
double dailyLow = Low[LowestBar(Low, Bars.BarsSinceNewTradingDay)];

Thank you very much DevelopingNT, any tip for last day close?

Best regards!


Started this thread Reply With Quote
  #3 (permalink)
 
guizera's Avatar
 guizera 
Monforf-les-Bains/Luxembourg
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: Futures: E-Mini ES, Crude CL
Posts: 11 since Sep 2016
Thanks Given: 6
Thanks Received: 2




Worked.

Thank you for the support.


Started this thread Reply With Quote




Last Updated on November 18, 2019


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts