NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

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




 
Search this Thread

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

  #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?
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Footprint for strategy Builder
NinjaTrader
Strategy stop orders partially filled
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
68 thanks
Spoo-nalysis ES e-mini futures S&P 500
21 thanks
Trading with Intuition
18 thanks
GFIs1 1 DAX trade per day journal
15 thanks
The Trading Pit "Futures VIP" Account Journal
15 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts