- ago
the backtest is not considering the choice candlesticks or heiki ashi .
The results should be different.
where do I set the chosen configuration?

0
1,091
Solved
7 Replies

Reply

Bookmark

Sort
- ago
#1
Heikin Ashi is a built in (yet imaginary) chart style but it does not represent the actual price on which trades are executed in a backtest.

Please find below a code sample for creating Heikin Ashi candles in your strategy code:

https://www.wealth-lab.com/Discussion/Two-Price-Panes-for-Heikin-Ashi-and-regular-price-5495
0
- ago
#2
In following trend strategies, the use of candlestick or heiken ashi brings backtests results with well different values. As a suggestion, including in future version this improvement for backtests and execution of automatic strategies. Thanks
0
Glitch8
 ( 10.65% )
- ago
#3
Have you seen our Candlestick Genetic Evolver extension?
0
- ago
#4
Hi Glitch,
Does the Candlestick Genetic Evolver allow the use of building block style indicators with heikin-ashi candles? For example, I'd like to drop in a building block with conditional "if heikin-ashi changes from red to green".

I guess my real question is: what is the most straightforward way to implement that conditional and others that use heikin-ashi candles into a strategy?

I have done some searching and reading. Here are the most relevant posts I read.
https://www.wealth-lab.com/Discussion/Two-Price-Panes-for-Heikin-Ashi-and-regular-price-5495
https://wl6.wealth-lab.com/Forum/Posts/Using-Indicators-with-Heikin-Ashi-Chart-Style-39846

0
Glitch8
 ( 10.65% )
- ago
#5
It currently doesn’t have such a Condition, but I think that would be a good thing to add. Let’s see what we can do!
0
Glitch8
 ( 10.65% )
- ago
#6
I added this Condition for Build 29 and the next release of the Candlestick Extension. You can use the N-Bar Ago Qualifier to test when Heikin Ashi changes from White to Black, like below ...



In the process, I noticed some Conditions (including the Candlestick Condition) currently don't work with Qualifiers, so I went ahead and fixed them, so it was good to focus on this for a while.
1
Best Answer
- ago
#7
Thanks Glitch!

I can now easily implement:
CODE:
Buy if Heikin Ashi candle was black yesterday and is white today


Can I use building blocks to implement this?
CODE:
Buy if [Heikin Ashi candle was black yesterday and is white today] within the last N days
0

Reply

Bookmark

Sort