NexusFi: Find Your Edge


Home Menu

 





Save parameters from one session to another


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bukkan with 5 posts (1 thanks)
    2. looks_two Big Mike with 1 posts (1 thanks)
    3. looks_3 Mindset with 1 posts (1 thanks)
    4. looks_4 koganam with 1 posts (0 thanks)
    1. trending_up 4,969 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 279 since Jun 2009
Thanks Given: 161
Thanks Received: 272

Guys can anybody tell me how to save the parameters in NT6.5

basically i have used 2 datetime and 2 timespan as properties (parameters) and wanted to save the same so that when i reopen the workspace or so i could retrieve the changed parameters.

i have tried writing and retrive the same from an XmlSerializer. but sadly results are not so encouraging. it does retrieves the values but is cropping up other issues.

again taking cue from this NinjaTrader Support Forum - View Single Post - saving parameters in workspace
can anybody tell me under what categories datetime and timespan will fall.

thanks in advance


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Thanks Mike. Godspeed.
The Elite Circle
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
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,586

bukkan,

I separated your question into its own thread. I'm sorry I can't say for sure how to do it, but I have some ideas, and when I get some time I will try to test. Hopefully others can contribute between now and then.

When you say other issues, what are they?

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:
  #3 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 279 since Jun 2009
Thanks Given: 161
Thanks Received: 272


thanks mike for the separate thread.

this post at NT support forum is of great help. now i can save and retrieve the settings but the problem is while accessing the same from a workspace (with the indicator on), the parameter values are restoring to their default values. seems the initialize part is called at the end can anybody throw some light. any workaround possible


Started this thread Reply With Quote
  #4 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 279 since Jun 2009
Thanks Given: 161
Thanks Received: 272

further update:

if i remove the xmlignore() from the properties the workspace seems to behave the way i wanted. but i have date and time (TimeSpan) parameters. date seems to work fine but time doesnt. atleast i am moving somewhere.


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

I am not sure if this answers your query but NT7 can save 'default' settings on each indicator and the workspace. Very useful little addition.


Reply With Quote
Thanked by:
  #6 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 279 since Jun 2009
Thanks Given: 161
Thanks Received: 272


Mindset View Post
I am not sure if this answers your query but NT7 can save 'default' settings on each indicator and the workspace. Very useful little addition.

thanks, i have not used NT7, but the problem sees a bit deeper. I want to select time from the parameters. for this i am using TimeSpan as one of the properties. the problem is xml doesnt save TimeSpan. since Ninja saves the workspace settings in xml, seems we still have some issues ahead.


Started this thread Reply With Quote
  #7 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 279 since Jun 2009
Thanks Given: 161
Thanks Received: 272

traded timespan with string



Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
koganam
Garner, NC/USA
 
Posts: 39 since Dec 2009
Thanks Given: 16
Thanks Received: 42

I have not seen your code, so this may be off base, but to code timespans, I would use a start time, and then an int for minutes and just use an addition of the timespan minutes to the start time.

 
Code
             
// Check that its past 10:00 AM and before the end of the initial processing time, in this case 10:40 AM. No processing before 9:30 AM
            
            if ((ToTime(Time[0]) < ToTime(09, 30, 00))) return;
            
            int endHour = 10;
            if ((ToTime(Time[0]) >= ToTime(10, 00, 00)) && (ToTime(Time[0]) <= ToTime(endHour, 40, 00)))

....

bukkan View Post
traded timespan with string




Reply With Quote




Last Updated on January 4, 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