Mixing Renko with HA candles - futures io
futures io



Mixing Renko with HA candles


Discussion in EasyLanguage Programming

Updated
    1. trending_up 3,872 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 150,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
 

Mixing Renko with HA candles

(login for full post details)
  #1 (permalink)
bakaroni
San Francisco, CA
 
 
Posts: 7 since Jan 2022
Thanks: 0 given, 0 received

I know that on a chart you can't have two data sources with one being Renko and the other being a time-based bar like HA candles. But is there a workaround to it? Or has anyone synthetically created virtual renko candles in code from HA candles using ticks?

Reply With Quote

Can you help answer these questions
from other members on futures io?
Market on Close data within IB
Platforms and Indicators
help with take profit several targets
TradeStation
Dissect open interest data
Crypto Futures
NT8 Order Management Strategy
The Elite Circle
How do I create Strategy with the Second Entry indicator
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
123 thanks
ApexTraderFunding.com experience and review
11 thanks
Want your NinjaTrader indicator created, free?
7 thanks
Artificial Intelligence (AI) and Chat GPT
7 thanks
Dax market profile (FDAX, TPO)
7 thanks
 
(login for full post details)
  #2 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,360 since Apr 2013
Thanks: 426 given, 1,578 received

bakaroni,

while creating virtual bars might be the most complex work around, it is likely the one giving you the most flexibility, too. You would for example be able to backtest strategies more accurately since your code could utilize Look-Inside-Bar-Backtesting when applied to tick or time based bars.
Another idea that comes to mind would be using a PriceSeries Provider for providing the time based data that you would use to compute the Heikin Ashi values from.

Regards,

ABCTG


bakaroni View Post
I know that on a chart you can't have two data sources with one being Renko and the other being a time-based bar like HA candles. But is there a workaround to it? Or has anyone synthetically created virtual renko candles in code from HA candles using ticks?


Follow me on Twitter Reply With Quote
 
(login for full post details)
  #3 (permalink)
bakaroni
San Francisco, CA
 
 
Posts: 7 since Jan 2022
Thanks: 0 given, 0 received



ABCTG View Post
bakaroni,

while creating virtual bars might be the most complex work around, it is likely the one giving you the most flexibility, too. You would for example be able to backtest strategies more accurately since your code could utilize Look-Inside-Bar-Backtesting when applied to tick or time based bars.
Another idea that comes to mind would be using a PriceSeries Provider for providing the time based data that you would use to compute the Heikin Ashi values from.

Regards,

ABCTG

Thanks for your response. Yes, backtesting with Renko is utterly useless in my experience. The disparity between the backtest and reality is night and day.

Now I have a very basic question: strategy code gets called by TS when a bar closes or a tick is received. But how does one store data across these invocations? For example, I want to be able to store the number of ticks over a period of time, etc.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,360 since Apr 2013
Thanks: 426 given, 1,578 received

bakaroni,

I am not sure I correctly understand your question. In general, you would for example use a variable to store values within your code. How often your variable can be updated throughout the bar depends if you declared it as intrabarpersist or not.

Regards,

ABCTG


bakaroni View Post
Thanks for your response. Yes, backtesting with Renko is utterly useless in my experience. The disparity between the backtest and reality is night and day.

Now I have a very basic question: strategy code gets called by TS when a bar closes or a tick is received. But how does one store data across these invocations? For example, I want to be able to store the number of ticks over a period of time, etc.


Follow me on Twitter Reply With Quote
 
(login for full post details)
  #5 (permalink)
bakaroni
San Francisco, CA
 
 
Posts: 7 since Jan 2022
Thanks: 0 given, 0 received


ABCTG View Post
bakaroni,

I am not sure I correctly understand your question. In general, you would for example use a variable to store values within your code. How often your variable can be updated throughout the bar depends if you declared it as intrabarpersist or not.

Regards,

ABCTG

I meant that I would like to calculate the value of a variable at the close of one bar and make it available to me in another bar. For example to synthetically construct either a Renko or HA candle from the other you'd need data to persist across bars.

Reply With Quote
 
(login for full post details)
  #6 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,360 since Apr 2013
Thanks: 426 given, 1,578 received

bakaroni,

in TS variables are tied to the datastream. When it comes to computing virtual bars within your code you can have more than one virtual bar per chart bar. In this case referencing values for previous bar will become problematic when using variables and other approaches like using a vector for example are more suitable.

Regards,

ABCTG


bakaroni View Post
I meant that I would like to calculate the value of a variable at the close of one bar and make it available to me in another bar. For example to synthetically construct either a Renko or HA candle from the other you'd need data to persist across bars.


Follow me on Twitter Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Mixing Renko with HA candles


Last Updated on February 21, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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