MC Multiple-instrument duplicate rows - futures io
futures io futures trading



MC Multiple-instrument duplicate rows


Discussion in MultiCharts

Updated by adam081527
    1. trending_up 1,107 views
    2. thumb_up 3 thanks given
    3. group 1 followers
    1. forum 3 replies
    2. attach_file 0 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
 

MC Multiple-instrument duplicate rows

(login for full post details)
  #1 (permalink)
Hong Kong
 
 
Posts: 10 since Feb 2012
Thanks: 7 given, 4 received

i use IB as broker and windows Vista as operating system, everything is good, but i have a little problem on printing data print to log,

while im printing 1minute closing price, there is a problem when i print multi-instrument to the log on the same row,

for example, printing crude oil (IB: CLJ2) and E-mini S&P (ESH2),
duplicated rows come out like below,

910.00 106.57 2632.00
912.00 106.62 2632.75
913.00 106.62 2632.25
914.00 106.62 2632.25
915.00 106.63 2632.25
916.00 106.66 2632.25
916.00 106.66 2632.25
917.00 106.63 2632.50
917.00 106.63 2632.50
918.00 106.63 2632.00
918.00 106.63 2632.00

for historical data, no problem, but when run in real time, it keep on showing duplicated data,
then the indicator values make unnecessary changes,
just like above data, i start the program on 091530, then data before is fine, but not afterwards,

im not sure if the problem is because of the 2 products from different exchanges, so they have time gaps??

any suggestions how to settle this problem??

much appreciate,

ad

Reply With Quote

Can you help answer these questions
from other members on futures io?
Macros for flatten and reverse
TradeStation
Dollar crash in 2021
Currencies
Capping Size in Tradestation
TradeStation
3x Fangdango
Traders Hideout
The value of High minus Open and Open minus Low.
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
VWAP for stock index futures trading?
25 thanks
Coronavirus COVID-19
25 thanks
Lost & losing hope
25 thanks
Emini 4 Tick Scalp still valid?
17 thanks
Price Action Kewltech Style
15 thanks
 
(login for full post details)
  #2 (permalink)
The Netherlands
 
Experience: None
Platform: MultiCharts, TradingView
Trading: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 686 received


adam081527 View Post
for historical data, no problem, but when run in real time, it keep on showing duplicated data,

It might be that the indicator gets printed on the close of Data1 and on the close of Data2, or the Print() statement gets executed more than once per bar.

Try something like the following (which would solve both possible causes):

 
Code
if (BarStatus(1) = 2) then begin

    Print("Now printing only at bar close for Data1.");

end;

Reply With Quote
The following user says Thank You to Jura for this post:
 
(login for full post details)
  #3 (permalink)
Hong Kong
 
 
Posts: 10 since Feb 2012
Thanks: 7 given, 4 received



Jura View Post
It might be that the indicator gets printed on the close of Data1 and on the close of Data2, or the Print() statement gets executed more than once per bar.

Try something like the following (which would solve both possible causes):

 
Code
if (BarStatus(1) = 2) then begin

    Print("Now printing only at bar close for Data1.");

end;

thank you very much, will try

Reply With Quote
The following user says Thank You to adam081527 for this post:
 
(login for full post details)
  #4 (permalink)
Hong Kong
 
 
Posts: 10 since Feb 2012
Thanks: 7 given, 4 received


Jura View Post
It might be that the indicator gets printed on the close of Data1 and on the close of Data2, or the Print() statement gets executed more than once per bar.

Try something like the following (which would solve both possible causes):

 
Code
if (BarStatus(1) = 2) then begin

    Print("Now printing only at bar close for Data1.");

end;

hi Jura,

it works very well,

much appreciate,
ad

Reply With Quote
The following user says Thank You to adam081527 for this post:


futures io Trading Community Platforms and Indicators MultiCharts > MC Multiple-instrument duplicate rows


March 11, 2012


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