NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

Updated
    1. trending_up 1,655 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 June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
$500M Riding on World Cup 2026: France/Spain Co-Favored …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
CME Group CEO Calls CFTC-Approved Crypto Perps Dangerous …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 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