NexusFi: Find Your Edge


Home Menu

 





Help with Indicator HighLow of Bar in NT7


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Mindset with 5 posts (3 thanks)
    2. looks_two Fat Tails with 2 posts (1 thanks)
    3. looks_3 Big Mike with 1 posts (1 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 3,923 views
    2. thumb_up 5 thanks given
    3. group 0 followers
    1. forum 8 posts
    2. attach_file 4 attachments




 
Search this Thread
  #1 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

Hi
I posted a small[https://nexusfi.com/free_downloads/vip_elite_circle/556-download.html?view] indicator[/URL] in the sharing section and would like to upgrade it to NT7.

Everything works EXCEPT for 2 things

1.An error gets reported when you try and save default settings in the indicator dialogue box.
The error refers to serialization.
I have checked and re checked things but I can't see where the problem is.

2. Onmost instruments (US Stocks) the horizontal offset doesn't move the text horizontally.
Works on Dax 03-10 future absolutely fine but not ES or YM??
If one of the more advanced coders could perhaps correct it / point me in the right direction and then I can update the post.?

Much appreciated.


Attached Thumbnails
Click image for larger version

Name:	error msg.png
Views:	266
Size:	17.6 KB
ID:	9940   Click image for larger version

Name:	Mid.png
Views:	397
Size:	73.0 KB
ID:	9941  
Attached Files
Elite Membership required to download: HighLowNt74.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
March Jobs Report Update: 178K Beat vs 59K Expected, Wag …
Traders Hideout
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
CME Lists U.S. Election Event Contracts as 2028 Democrat …
Prediction Markets & Event Contracts
Energy Futures Shatter All-Time Daily Volume: 8.3 Millio …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
20 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


Hi Mindset,

I am not an expert for C#, but this might help:

The serialization error refers to <txtfont>. You have declared this public, if you declare it private the serialization should work. I do not understand the other problem though.


Reply With Quote
Thanked by:
  #4 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

Oh that is criminally simple - thanks Fat Tails.
I must have spent hours trying to work out what wasn't serializing.


Started this thread Reply With Quote
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557

For the offset problem, try using Hoffset * TickSize instead of just Hoffset.

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

Tried that already - I think it's to do with the function GetXByBarIdx .
I have never been entirely happy working with it.
But as it's 'unsupported' by NT I am kind of stuck. I assume that I am taking the Current bar and adding .....

As I was writing this it popped into my head
it's
ChartControl.BarSpace/2 * Hoffset;
Hurrah! Seems to work anyway!


Started this thread Reply With Quote
  #7 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114

My secret: I just had a look at the trace file. System.InvalidOperationException: 'System.Drawing.Font' cannot be serialized. From there it was really easy to find the problem....


Mindset View Post
Oh that is criminally simple - thanks Fat Tails.
I must have spent hours trying to work out what wasn't serializing.


Reply With Quote
  #8 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

FatTails

Yes, I know I looked there - must have just missed it???

As it turned out there were also minor logic and plot errors.

Anyway the indicator is all done now - I will run it the rest of today and provided no other issues I will post it in the sharing section tomorrow.

I have upgraded it again so it's a little more useful still.


Started this thread Reply With Quote
  #9 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

NT7 version Here.

NT6.5 version here.


Attached Thumbnails
Click image for larger version

Name:	up warning 3.png
Views:	409
Size:	69.3 KB
ID:	10168  
Started this thread Reply With Quote
Thanked by:




Last Updated on March 24, 2010


© 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