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

Incorrect trading signals using renko bars on data stream 2
Updated: Views / Replies:518 / 2
Created: by mattyham 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 100,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

Thread Tools Search this Thread

Incorrect trading signals using renko bars on data stream 2

  #1 (permalink)
Ottawa, Ontario
Posts: 1 since Feb 2015
Thanks: 1 given, 1 received

Incorrect trading signals using renko bars on data stream 2

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?
TTM Value or TTM Value Alert
vwap strategy
GetRTAccountEquity - EasyLanguage, MultiCharts, Daily Account P&L
Plot line has gaps/disconnected on intraday charts
Best Threads (Most Thanked)
in the last 7 days on futures io
Recession? Depression? Bailout!
297 thanks
ES futures Spoo-nalysis SP500/SPX
247 thanks
Coronavirus COVID-19
152 thanks
Understanding Footprint Charts / Number bars
108 thanks
What's your "comfort" number?
51 thanks
  #2 (permalink)
Hamburg Germany
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 2,163 since Apr 2013
Thanks: 384 given, 1,396 received

This post has been selected as an answer to the original posters question Answer


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:
  #3 (permalink)
Trading Experience: Intermediate
Platform: MultiCharts 10
Broker/Data: InteractiveBrokers, IQFeed
Favorite Futures: ES
Posts: 56 since Nov 2015
Thanks: 19 given, 2 received

Any luck

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!

Last edited by GuppyDRV; September 22nd, 2019 at 12:36 PM. Reason: Add last sentence
Reply With Quote


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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now

Social Media Predictive Data for Traders w/Joe Gits @ SMA [and Lime Brokerage]

Apr 9

Similar Threads
Thread Thread Starter Forum Replies Last Post
renko bars vs range bars? shodson Traders Hideout 23 March 29th, 2019 05:57 AM
Renko Bars Worth Using? fryguy2 NinjaTrader 48 March 24th, 2019 05:56 AM
Starting New Twitch Trading Stream motowater Emini and Emicro Index 1 October 6th, 2018 06:47 PM
Thinkorswim / TD Ameritrade crude oil data incorrect ekim Reviews of Brokers and Data Feeds 4 October 3rd, 2014 12:18 PM
anyone know how can i stream live OHLC from MT4 to excel? onetwosome MetaTrader 5 January 20th, 2011 06:40 PM

All times are GMT -4. The time now is 05:07 PM. (this page content is cached, log in for real-time version)

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