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?
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
Warsh Opens Today, Hormuz June 19 -- WTI Below $80, Fran …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
 
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