Multiple dataseries intrabarpersist ohlc - EasyLanguage Programming | futures io social day trading
futures io futures trading


Multiple dataseries intrabarpersist ohlc
Updated: Views / Replies:4,397 / 17
Created: by Big Mike Attachments:3

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
 3  
 
Thread Tools Search this Thread
 

Multiple dataseries intrabarpersist ohlc

  #1 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received

Multiple dataseries intrabarpersist ohlc

I am hitting a small problem and am not seeing what the issue is. The problem is that for data2 the values are not working intrabar even with intrabarpersist enabled. I am only getting values as of the close of data2.

Here is the code:

 
Code
[IntrabarOrderGeneration = true]

// data1 = entry 6 range
// data2 = 1 hour



vars:
	d1c	( 0 ),
	intrabarpersist d1l	( 0 ),
	intrabarpersist d1h	( 0 ),
	d2c	( 0 ),
	intrabarpersist d2l	( 0 ),
	intrabarpersist d2h	( 0 );
	
d1c = C of data1;
d1l = L of data1;
d1h = H of data1;
d2c = C of data2;
d2l = L of data2;
d2h = H of data2;

Text_new_s(date, time_s, d2c, "_");
Text_new_s(date, time_s, d2h, "+");
Text_new_s(date, time_s, d2l, "=");
data1 = 6 range
data2 = 1 hour

I've also let it draw in real time just to make sure this isn't a historical vs. realtime issue. It isn't - the drawing is the same.

Resulting screen shot attached.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Attached Thumbnails
Multiple dataseries intrabarpersist ohlc-7-21-2011-1-12-06-am.png  
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)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received




@Jura to the rescue, maybe?

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #4 (permalink)
Elite Member
Singapore
 
Futures Experience: Beginner
Platform: Multicharts, R
Favorite Futures: EUR / USD
 
Posts: 185 since Feb 2010
Thanks: 106 given, 98 received

Is the chart showing the problem or how it works when intra bar persist isn't enabled?

Reply With Quote
The following user says Thank You to diverdan for this post:
 
  #5 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received


diverdan View Post
Is the chart showing the problem or how it works when intra bar persist isn't enabled?

The chart illustrates the problem - as data2 makes a new high or low, the + and - signs printed on the chart should be moving. Instead they are static, representing only the last completed data2 bar.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #6 (permalink)
Elite Member
Singapore
 
Futures Experience: Beginner
Platform: Multicharts, R
Favorite Futures: EUR / USD
 
Posts: 185 since Feb 2010
Thanks: 106 given, 98 received

Hmmm

Your code looks right and I can see no good reason why it shouldn't work. I will think on this as well...

Reply With Quote
 
  #7 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


Big Mike View Post
The chart illustrates the problem - as data2 makes a new high or low, the + and - signs printed on the chart should be moving. Instead they are static, representing only the last completed data2 bar.

Hm, nice challenge. I don't see a solution (yet), but will try to work on it this weekend.

In the meantime, not to 'play down' this problem or oversimplify it, but why not use a Donchian channel (found in the download section here at futures.io (formerly BMT)), based on Data2 but plotted on Data1? That would also make this indicator less memory consuming with all those +,- and ='s. Or wouldn't that work?

(Off topic: how do you keep the scale of Data1 (6 Range) so nicely aligned (i.e. same space between bars) when adding a Data2 (1 hour)?)

Attached Thumbnails
Multiple dataseries intrabarpersist ohlc-donchannel.png  
Reply With Quote
 
  #8 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received

The text output (+ and -) is just for debug purpose, will be deleted once it works.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #9 (permalink)
Trading Apprentice
Hong Kong
 
Futures Experience: Intermediate
Platform: multicharts
Favorite Futures: futures
 
Posts: 3 since Aug 2011
Thanks: 0 given, 1 received

Hi, I am new to your very helpful website and was searching for some workaround about some issues with MC regarding the bar magnifier feature of MC and i think your issue is the same as mind.

My understanding is that the bar magnfier can only be apllied to the trading instrument; therefore if you use multiple data series, calculations involving secondary data series are based on end of bar value. This would create a "look to the future" issue when backtesting if you use IOG in combination with intrabarpersist involving "non-tick" secondary data series because orders are generated within a bar but based on end of bar value of the secondary data series.

Just wondering if anyone has encountered similar issue and is there a workaround? I have made a feature request in MC forum and will see if there is any positive response.

Reply With Quote
 
  #10 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received



atsui View Post
Hi, I am new to your very helpful website and was searching for some workaround about some issues with MC regarding the bar magnifier feature of MC and i think your issue is the same as mind.

My understanding is that the bar magnfier can only be apllied to the trading instrument; therefore if you use multiple data series, calculations involving secondary data series are based on end of bar value. This would create a "look to the future" issue when backtesting if you use IOG in combination with intrabarpersist involving "non-tick" secondary data series because orders are generated within a bar but based on end of bar value of the secondary data series.

Just wondering if anyone has encountered similar issue and is there a workaround? I have made a feature request in MC forum and will see if there is any positive response.

I was not using bar magnifier. Just intrabarpersist.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote

Reply



futures io > > > > > Multiple dataseries intrabarpersist ohlc

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
Multiple dataseries Breakout NinjaTrader 28 March 30th, 2015 01:14 PM
Need help with order entry on multiple dataseries bobbakerr EasyLanguage Programming 20 August 29th, 2010 10:03 AM
Intrabarpersist and Historical tick data Question marketstudent EasyLanguage Programming 2 August 13th, 2010 03:07 PM
OHLC calculations indicator vast NinjaTrader Programming 3 January 16th, 2010 06:43 AM
catching dataseries from DoubleMA max-td NinjaTrader Programming 1 June 12th, 2009 07:56 AM


All times are GMT -4. The time now is 11:33 AM.

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-11 in 0.12 seconds with 20 queries on phoenix via your IP 54.82.81.154