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 koganam with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (1 thanks)
    4. looks_4 Mindset with 1 posts (1 thanks)
    1. trending_up 3,962 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

Save parameters from one session to another

  #1 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

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?
Deepmoney LLM
Elite Quantitative GenAI/LLM
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #2 (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,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,537

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 Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

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: 291

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: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

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


© 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