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,255 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:	215
Size:	17.6 KB
ID:	9940   Click image for larger version

Name:	Mid.png
Views:	347
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?
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
Radarscreen
TradeStation
MC Advanced Simulated Trading.
MultiCharts
Is there a way to simulate CONTINUOUS CONTRACT?
NinjaTrader
What You Know vs How much you know about it
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
144 thanks
1 Minute Man
60 thanks
HumbleTraders next chapter
42 thanks
Winning attitudes create winning traders
36 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
25 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,104


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,589 since Jun 2009
Thanks Given: 33,332
Thanks Received: 101,943

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

Mike



Join the free Markets Chat beta: Real-time Trading Insights

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 Twitter 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, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,104

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:	336
Size:	69.3 KB
ID:	10168  
Started this thread Reply With Quote
Thanked by:




Last Updated on March 24, 2010


© 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