indicator update and template not saving - NinjaTrader Programming | futures io social day trading
futures io futures trading


indicator update and template not saving
Updated: Views / Replies:2,692 / 23
Created: by 35trader Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

indicator update and template not saving

  #1 (permalink)
Trading Apprentice
Toronto, Canada
 
Futures Experience: Advanced
Platform: NA
Favorite Futures: commodities
 
Posts: 27 since Oct 2011
Thanks: 0 given, 3 received

indicator update and template not saving

1. I want to update a EOD indicator right after the end of session vs on nextbar (session open) anyone have a script for this to happen or ideas?

2. Second issue, the following error: Indicator could not be serialized. (when saving as template)
The indicator recently had a live trend line added to it that updated per bar, since then the indicator cannot be saved as a template if the line is plotted on the chart, if its not plotted then I can save as a template.
Any ideas?

thanks

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,597 received
Forum Reputation: Legendary



35trader View Post
1. I want to update a EOD indicator right after the end of session vs on nextbar (session open) anyone have a script for this to happen or ideas?

2. Second issue, the following error: Indicator could not be serialized. (when saving as template)
The indicator recently had a live trend line added to it that updated per bar, since then the indicator cannot be saved as a template if the line is plotted on the chart, if its not plotted then I can save as a template.
Any ideas?

thanks

1. You need to set your indicator to CalculateOnBarClose = false, otherwise it will only update with the first tick of the new session.

2. First close the offending chart. Shutdown and restart NinjaTrader. Now add the indicator to a virgin chart (only this indicator and nothing else !) and try to save it as a template. If the problem persists, your indicator has coding errors.

3. In case that there are coding errors, please post the indicator here and I will have a look which lines of the code create the problem.

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Toronto, Canada
 
Futures Experience: Advanced
Platform: NA
Favorite Futures: commodities
 
Posts: 27 since Oct 2011
Thanks: 0 given, 3 received


Fat Tails View Post
1. You need to set your indicator to CalculateOnBarClose = false, otherwise it will only update with the first tick of the new session.

2. First close the offending chart. Shutdown and restart NinjaTrader. Now add the indicator to a virgin chart (only this indicator and nothing else !) and try to save it as a template. If the problem persists, your indicator has coding errors.

3. In case that there are coding errors, please post the indicator here and I will have a look which lines of the code create the problem.

-----
1. I tried this and did not update when changed to false. Its currently programmed to update per bar, from what I can see I need it programmed to have Bars.Session.GetNextBeginEnd, but this is out of my league LOL, so will need to find a programmer to help me.

2. I fluked out and fixed this myself, a class needed switched from public to private.

Thanks for your response.

Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,597 received
Forum Reputation: Legendary


35trader View Post
-----
1. I tried this and did not update when changed to false. Its currently programmed to update per bar, from what I can see I need it programmed to have Bars.Session.GetNextBeginEnd, but this is out of my league LOL, so will need to find a programmer to help me.

2. I fluked out and fixed this myself, a class needed switched from public to private.

Thanks for your response.

Don't hesitate to post the code if you need any help.

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Toronto, Canada
 
Futures Experience: Advanced
Platform: NA
Favorite Futures: commodities
 
Posts: 27 since Oct 2011
Thanks: 0 given, 3 received


Fat Tails View Post
Don't hesitate to post the code if you need any help.

Fat Tails,

Here is basic EMA code, can you alter it to do the following:
1. Continue to update on each bar
2. Update at session end

many thanks

/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
Add(new Plot(Color.Orange, "EMA"));

Overlay = true;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
Value.Set(CurrentBar == 0 ? Input[0] : Input[0] * (2.0 / (1 + Period)) + (1 - (2.0 / (1 + Period))) * Value[1]);
}

#region Properties
/// <summary>
/// </summary>
[Description("Numbers of bars used for calculations")]
[GridCategory("Parameters")]
public int Period
{
get { return period; }
set { period = Math.Max(1, value); }
}
#endregion
}
}

Reply With Quote
 
  #7 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,597 received
Forum Reputation: Legendary

@35trader:

I do not understand your question.

The EMA updates after each bar and at session end, if you set it to CalculateOnBarClose = false.

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
Toronto, Canada
 
Futures Experience: Advanced
Platform: NA
Favorite Futures: commodities
 
Posts: 27 since Oct 2011
Thanks: 0 given, 3 received


Fat Tails View Post
@35trader:

I do not understand your question.

The EMA updates after each bar and at session end, if you set it to CalculateOnBarClose = false.


Where within the EMA script does it trigger the at session end update?

For some reason this false function does not have the same affect on my indicator as it does in the EMA script I pasted here as I see the EMA does update with false inserted as you stated.

thanks

Reply With Quote
 
  #9 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,597 received
Forum Reputation: Legendary


35trader View Post
Where within the EMA script does it trigger the at session end update?

For some reason this false function does not have the same affect on my indicator as it does in the EMA script I pasted here as I see the EMA does update with false inserted as you stated.

thanks

You have never shown your indicator to anybody, how would I know what you have done?

Reply With Quote
 
  #10 (permalink)
Trading Apprentice
Toronto, Canada
 
Futures Experience: Advanced
Platform: NA
Favorite Futures: commodities
 
Posts: 27 since Oct 2011
Thanks: 0 given, 3 received



Fat Tails View Post
You have never shown your indicator to anybody, how would I know what you have done?



Can you do the following.
Where within the EMA script does it trigger the at session end update and explain it?

thanks

Reply With Quote

Reply



futures io > > > > > indicator update and template not saving

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recession's Legacy: Twice as Many Americans Saving Quick Summary News and Current Events 0 July 16th, 2011 02:40 PM
Volume Profile indicator recalculation (update) frequency zury Investor/RT 2 May 18th, 2011 09:23 AM
Why Saving for Retirement Probably Won't Be Enough Quick Summary News and Current Events 2 January 23rd, 2011 03:16 PM
Daylight saving time petemm Traders Hideout 2 January 29th, 2010 08:27 AM
Indicator Update keepdchange The Elite Circle 4 October 14th, 2009 06:37 PM


All times are GMT -4. The time now is 10:40 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-10 in 0.13 seconds with 19 queries on phoenix via your IP 54.221.73.186