Multiple dataseries intrabarpersist ohlc - futures io
futures io futures trading



Multiple dataseries intrabarpersist ohlc


Discussion in EasyLanguage Programming

Updated by Big Mike
      Top Posters
    1. looks_one Big Mike with 8 posts (1 thanks)
    2. looks_two diverdan with 2 posts (1 thanks)
    3. looks_3 atsui with 2 posts (0 thanks)
    4. looks_4 Jura with 2 posts (0 thanks)
    1. trending_up 5,446 views
    2. thumb_up 2 thanks given
    3. group 6 followers
    1. forum 17 replies
    2. attach_file 3 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Multiple dataseries intrabarpersist ohlc

(login for full post details)
  #1 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,051 since Jun 2009
Thanks: 31,658 given, 94,934 received

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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Attached Thumbnails
Click image for larger version

Name:	7-21-2011 1-12-06 AM.png
Views:	132
Size:	46.2 KB
ID:	44072  
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote

Can you help answer these questions
from other members on futures io?
is there an easy way to obtain by code the price variation percentual
MultiCharts
Where is the link to download GomiRecorder?
NinjaTrader
Stacked Imbalances.
Sierra Chart
DLL with webrequest function for MC
MultiCharts
Looking freelancer for MT4 Indicator
Platforms and Indicators
 
 
(login for full post details)
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,051 since Jun 2009
Thanks: 31,658 given, 94,934 received




@Jura to the rescue, maybe?

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #4 (permalink)
Singapore
 
Experience: Beginner
Platform: Multicharts, R
Trading: 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?

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to diverdan for this post:
 
(login for full post details)
  #5 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,051 since Jun 2009
Thanks: 31,658 given, 94,934 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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #6 (permalink)
Singapore
 
Experience: Beginner
Platform: Multicharts, R
Trading: EUR / USD
 
Posts: 185 since Feb 2010
Thanks: 106 given, 98 received

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

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
The Netherlands
 
Experience: None
Platform: MultiCharts, TradingView
Trading: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 685 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
Click image for larger version

Name:	donChannel.png
Views:	76
Size:	59.3 KB
ID:	44354  
Reply With Quote
 
(login for full post details)
  #8 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,051 since Jun 2009
Thanks: 31,658 given, 94,934 received

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

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #9 (permalink)
Hong Kong
 
 
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
 
(login for full post details)
  #10 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,051 since Jun 2009
Thanks: 31,658 given, 94,934 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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Multiple dataseries intrabarpersist ohlc


December 27, 2011


Upcoming Webinars and Events
     



Copyright © 2020 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