NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

Updated
    1. trending_up 1,086 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?
Trade idea based off three indicators.
Traders Hideout
About a successful futures trader who didnt know anythin …
Psychology and Money Management
What broker to use for trading palladium futures
Commodities
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #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