Incorrect trading signals using renko bars on data stream 2 - futures io
futures io futures trading

Incorrect trading signals using renko bars on data stream 2

Discussion in MultiCharts

Updated by GuppyDRV
    1. trending_up 628 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 2 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

Incorrect trading signals using renko bars on data stream 2

(login for full post details)
  #1 (permalink)
Ottawa, Ontario
Posts: 1 since Feb 2015
Thanks: 1 given, 1 received

Hi. I am trying to create a simple automated trading signal that uses a renko chart on data stream 2 to generate signals at the close of a full renko bar, and then enter/exit trades on a time based bar chart on data stream 1. Nothing fancy, just trying to learn how to do this sort of thing. Backtesting on the code I have created indicates that it "works", but testing in real-time is another story. It seems to be entering trades before a full renko bar on data stream 2 has actually closed. In my settings, I have intrabar order generation off. Can anyone point out where I am going wrong. The code is as follows:

[IntrabarOrderGeneration = false] ;

Condition1 = close of data2 > open of data2 and close[1] of data2 < open[1] of data2 ;
Condition2 = close of data2 < open of data2 and close[1] of data2 > open[1] of data2 ;

If CurrentBar > 1 and BarStatus(1) of data2 = 2 and condition1 and marketposition = 0 then begin
Buy ( "LE" ) next bar at market ;
end ;

If CurrentBar > 1 and BarStatus(1) of data2 = 2 and condition2 and marketposition > 0 then begin
Sell ( "LX" ) next bar at market ;
end ;

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

Can you help answer these questions
from other members on futures io?
Traders Hideout
TraderSync Experience?
Trading Reviews and Vendors
T​​​​​​radestation datafeed (real time and historical) to NT8
Times and Sales more data to be displayed
(login for full post details)
  #2 (permalink)
Hamburg Germany
Experience: Advanced
Platform: Multicharts, Tradestation
Broker: DTN IQ
Trading: ES
Posts: 2,192 since Apr 2013
Thanks: 385 given, 1,428 received


your code might use BarStatus incorrectly.


Where: DataNum - a numerical expression specifying the data number of the series

If DataNum is not specified, a value for the current data series will be returned.

The print reserved word might be helpful for you to evaluate the internal values of variables and reserved word within your code.



Follow me on Twitter Visit my Facebook Reply With Quote
The following 2 users say Thank You to ABCTG for this post:
(login for full post details)
  #3 (permalink)
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 56 since Nov 2015
Thanks: 19 given, 2 received

Just wondering if you have had any luck with this problem. I’m having the same isssue where my strategy is taking trades prior to the close of bar when using Renko. Works great when a Renko Bar forms on the first time interval but not when the bar goes beyond the first iteration.

I have this thread on the topic:

For backtest you will need to use (buy this bar on close). I might also suggest setting up a bid/ask series so that the trades happen at the correct price else they will occur at the Renko Bar price and not the underlying market price.


Just saw that you have an underlying data series which might solve the price issue if it’s the same time interval as the Renko! This will get you close, however a bid/ask for precise backtest is always advisable!

Reply With Quote

futures io Trading Community Platforms and Indicators MultiCharts > Incorrect trading signals using renko bars on data stream 2

September 22, 2019

Upcoming Webinars and Events

Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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