Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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 ;
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 know.....I know Renko! Ive been using them for years with manual trading and have been trying to creat some automated signals based on the indicators that I use visually.
The basic setup although the time period and points are random. …
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.
GuppyDRV
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!