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,701 / 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

  #11 (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,601 received
Forum Reputation: Legendary


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

thanks

OnBarUpdate() is triggered at session end, when COBC = false.

Reply With Quote
 
  #12 (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
OnBarUpdate() is triggered at session end, when COBC = false.

Greatly appreciated, that I did not know.


1 So if I create a second session within the same day, it updates the second session also (if set at false) even if no bars are developed because the market is closed?

Example:

Session 1 Monday - 9:30 am to 4:00 pm (market open) set at false updates at 4:00
Session 2 Monday - 4:30 pm to 6:00 pm (market closed) set at false updates at 6:00

2. When set at false it still updates on each new bar also? just confirming this.

thanks

Reply With Quote
 
  #13 (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,601 received
Forum Reputation: Legendary



35trader View Post
Greatly appreciated, that I did not know.


1 So if I create a second session within the same day, it updates the second session also (if set at false) even if no bars are developed because the market is closed?

Example:

Session 1 Monday - 9:30 am to 4:00 pm (market open) set at false updates at 4:00
Session 2 Monday - 4:30 pm to 6:00 pm (market closed) set at false updates at 6:00

2. When set at false it still updates on each new bar also? just confirming this.

thanks


With COBC = false, OnBarUpdate() will update with each incoming tick, no more and no less. So what you will see at session end is the state of the indicator as per last tick of that session. If there are no incoming ticks, OnBarUpdate() will not be triggered.

Historical bars are 1-tick bars, so OnBarUpdate() will be triggered once only for each bar on your chart.

Reply With Quote
 
  #14 (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
With COBC = false, OnBarUpdate() will update with each incoming tick, no more and no less. So what you will see at session end is the state of the indicator as per last tick of that session. If there are no incoming ticks, OnBarUpdate() will not be triggered.

Historical bars are 1-tick bars, so OnBarUpdate() will be triggered once only for each bar on your chart.

I have a feeling were stepping backwards or missed communication happen.

Its the indicator update that is my focus, using the OnBarUpdate() the indicator is updated on the first tick of the new bar, but at session end say at 4:00 pm the next bar is possibly at 9:30 am the next morning and I don't wait for the first tick at 9:30 am that creates a new bar and a indicator update. I want it triggered at session end "also" and thought setting it at false did this? so indicator updates would occur at new bar and session end both.

I likely will see if the false works on live today as I have a symbol that is currently trading in a trigger spot on my indicator, so I hope to berify this today.

But what happens if one uses EOD data (not live) and the data comes in after the session end, this is where I wanted to have the indicator update immediately vs waiting for the EOD on the next day (needs next cansle) to trigger the indicator. Maybe I need a false ending session that occurs after the EOD delayed data comes in so it updates immediately.

Hope this makes sense.

appreciate your help.

Reply With Quote
 
  #15 (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,601 received
Forum Reputation: Legendary


35trader View Post
I have a feeling were stepping backwards or missed communication happen.

Its the indicator update that is my focus, using the OnBarUpdate() the indicator is updated on the first tick of the new bar, but at session end say at 4:00 pm the next bar is possibly at 9:30 am the next morning and I don't wait for the first tick at 9:30 am that creates a new bar and a indicator update. I want it triggered at session end "also" and thought setting it at false did this? so indicator updates would occur at new bar and session end both.

I likely will see if the false works on live today as I have a symbol that is currently trading in a trigger spot on my indicator, so I hope to berify this today.

But what happens if one uses EOD data (not live) and the data comes in after the session end, this is where I wanted to have the indicator update immediately vs waiting for the EOD on the next day (needs next cansle) to trigger the indicator. Maybe I need a false ending session that occurs after the EOD delayed data comes in so it updates immediately.

Hope this makes sense.

appreciate your help.

If you want an update at session end you need to set you indicators to COBC = false. I am repeating this now. Otherwise the indicator value of the last bar of the session will not be calculated until the first tick of the new session arrives.

For EOD data you need to make the difference between live real-time data and historical data. After the session end you have to wait for a few minutes until the data provider is ready to supply you with daily historical data (this is not an incoming real-time tick). Once daily data is available, you can either

-> download it for all instruments via the Historical data manager (this is what I do, I select the default list and download everything at once)
-> connect to NinjaTrader and open a new chart for the instrument

Once you have downloaded historical data, to show the indicator value for the last day, guess what, you have to set your indicators to COBC = false.

It is not that difficult to understand.

Reply With Quote
 
  #16 (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
If you want an update at session end you need to set you indicators to COBC = false. I am repeating this now. Otherwise the indicator value of the last bar of the session will not be calculated until the first tick of the new session arrives.

For EOD data you need to make the difference between live real-time data and historical data. After the session end you have to wait for a few minutes until the data provider is ready to supply you with daily historical data (this is not an incoming real-time tick). Once daily data is available, you can either

-> download it for all instruments via the Historical data manager (this is what I do, I select the default list and download everything at once)
-> connect to NinjaTrader and open a new chart for the instrument

Once you have downloaded historical data, to show the indicator value for the last day, guess what, you have to set your indicators to COBC = false.

It is not that difficult to understand.

LOL

I made a test end session time that happens after the EOD data arrives and will see if the false solves my issue.

greatly appreciate your help

Reply With Quote
The following user says Thank You to 35trader for this post:
 
  #17 (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
If you want an update at session end you need to set you indicators to COBC = false. I am repeating this now. Otherwise the indicator value of the last bar of the session will not be calculated until the first tick of the new session arrives.

For EOD data you need to make the difference between live real-time data and historical data. After the session end you have to wait for a few minutes until the data provider is ready to supply you with daily historical data (this is not an incoming real-time tick). Once daily data is available, you can either

-> download it for all instruments via the Historical data manager (this is what I do, I select the default list and download everything at once)
-> connect to NinjaTrader and open a new chart for the instrument

Once you have downloaded historical data, to show the indicator value for the last day, guess what, you have to set your indicators to COBC = false.

It is not that difficult to understand.

Did the following:

1. Altered the session time to occur after the EOD data was available.
2. Updated the EOD data and set the false setting and saved template.
3. Opened Ninja from scratch after the session ended to see if the indicator updated, it did not trigger as it should have.

So I must have an issue within the indicator that is not allowing the "false" function to work?

Reply With Quote
 
  #18 (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,601 received
Forum Reputation: Legendary


35trader View Post
Did the following:

1. Altered the session time to occur after the EOD data was available.
2. Updated the EOD data and set the false setting and saved template.
3. Opened Ninja from scratch after the session ended to see if the indicator updated, it did not trigger as it should have.

So I must have an issue within the indicator that is not allowing the "false" function to work?

Why don't you post a screenshot and the code of the indicator, otherwise we will exchange messages for ever.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #19 (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
Why don't you post a screenshot and the code of the indicator, otherwise we will exchange messages for ever.

Its not that I don't want to show you, I first had to determine what I should show you, as stated I'm not programmer.

I have had feed back from the actual programmer today:

"An event is classified as when a tick comes in and the current candle is updated, or when the user scrolls the chart window. So the program starts by initializing the indicator and scans through each historical candle in Ninja's database and calculates the indicator. This loop starts at line 3670. When it reaches the end (the right hand side / the current candle) it stops. During this loop it checks for directional triggers."

The issue is as stated when the indicator gets all the way over to the current EOD data, it does not use the data on that day to update if a trigger occurred that day, it needs the follow on EOD to trip the trigger.
My live daily chart also has the same issue, checking if it updates on the first tick at 6:00pm for NG, it should because the trigger is defined under live updates differently, for lack of better words.

Ok I have found out that he did use OnBarUpDate () when plotting historic EOD??
he even says that function has no value on the live candle, but I know off live candles it updates on the first tick of the new bar, which operates fine.

Maybe the following data helps you out?
Should I some how insert the OnBarUpdate() in the script for the historic EOD update, like I know how to do it LOL.

thanks

Reply With Quote
 
  #20 (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,601 received
Forum Reputation: Legendary



35trader View Post
Its not that I don't want to show you, I first had to determine what I should show you, as stated I'm not programmer.

I have had feed back from the actual programmer today:

"An event is classified as when a tick comes in and the current candle is updated, or when the user scrolls the chart window. So the program starts by initializing the indicator and scans through each historical candle in Ninja's database and calculates the indicator. This loop starts at line 3670. When it reaches the end (the right hand side / the current candle) it stops. During this loop it checks for directional triggers."

The issue is as stated when the indicator gets all the way over to the current EOD data, it does not use the data on that day to update if a trigger occurred that day, it needs the follow on EOD to trip the trigger.
My live daily chart also has the same issue, checking if it updates on the first tick at 6:00pm for NG, it should because the trigger is defined under live updates differently, for lack of better words.

Ok I have found out that he did use OnBarUpDate () when plotting historic EOD??
he even says that function has no value on the live candle, but I know off live candles it updates on the first tick of the new bar, which operates fine.

Maybe the following data helps you out?
Should I some how insert the OnBarUpdate() in the script for the historic EOD update, like I know how to do it LOL.

thanks


Whatever is the problem, it is caused by the code.....

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 09:55 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-12 in 0.15 seconds with 19 queries on phoenix via your IP 54.221.93.187