Get access to buy/sell signals
Author: pestocat2
Creation Date: 5/6/2018 6:43 PM
profile picture

pestocat2

#1
I have noticed on my Heikin-Ashi chart that there are Buy and Sell icons above specific candles. Is there a way to get access to these signals. I assume that WLP has Heikin-Ashi as an object with multiple values, i.e., Open, Close, High, Low and then what about those little icons.
Thank you
profile picture

Eugene

#2
There's a lot of code here and there and we have no idea what strategy script you're running. If you found one that plots some trade icons on Heikin Ashi bars, give us a reference to it or even repost your question in the original discussion thread.

Sometimes it's a challenge to decipher posts when code is omitted or questions lack detail. This insightful text might be a useful guide in learning how to clearly explain problems and how to ask questions the smart way.
profile picture

pestocat2

#3
The attached image shows a shaded area in the lower left. In the middle is an Buy icon. Is there a way to get access to this icon in a back test. Further on in time there is a Sell icon. A mouse-over will give the viewer a potential gain if the buy and sell advice was taken.
profile picture

Eugene

#4
Even better. This is a usual entry signal generated by the strategy with its source code available to you (as it's not even a compiled Strategy library). You already have complete and unrestricted access to it. One thing that's still missing about your question(s) is what you really mean by the ambiguous term "access". In other words, what are you really after when saying "get access"?

I've renamed the topic title "Heikin-Ashi buy/sell icons" to exclude "Heikin Ashi" as your question has nothing specific to it. Will do it again once the "access" is clarified because "Get access to buy/sell signals" sounds vague.
profile picture

pestocat2

#5
The HullMA indicator has a value and that's all. The Haikin-Ashi indicator has multiple values for each candle, e.g., Open, Close, High, Low. and so I'm thinking this is an object in software terms. I have not started any code along this direction yet, I'm trying to setup a strategy. So each Haikin-Ashi candle has at least 4 pieces of data. These buy/sell icons, are they available as maybe Boolean values. So this is what I mean as 'access'. You mentioned "the source code is available to me." Is there some information on how use that.
Thank you Eugene,
Gary
profile picture

Eugene

#6
Gary, we're getting closer. These buy/sell icons are always the product of Strategy code. You might've taken a random Strategy and simply applied the Heikin Ashi chart style, or copied and pasted some H-A example code from our website. In any case there's "something" driving those icons in the code.

Let's not put the cart before the horse and take you to a Heikin Ashi code that builds the H-A DataSeries which is accessible in Strategy code as OHLC. There are numerous code examples on our Forum, in the Wiki (click), and even in the QuickRef (you'll find pointers after searching the forum). This is how one gets access to the Heikin Ashi OHLC in Strategy code.

P.S. Neither "Haikin" nor "Heiken" will do - the common pronunciation is Heikin: Heiken-Ashi Candlesticks.
profile picture

pestocat2

#7
Eugene,
Yes we are getting closer. I've attached another figure that displays candlesticks with the the little icon that when you do a mouse-over says to Sell and even gives you the profit if you had followed the Buy recommendation from several days ago. When I say "access" I just mean 'how can I use it in automated back test.' You mentioned the the buy and sell icons came from a strategy I copied. I'm not aware I copied any strategy. I have just added indicators according to my needs.
profile picture

Eugene

#8
If the Strategy code that you did doesn't have Heikin Ashi rules in it, then the colored bars may be rendered by the H-A ChartStyle. If you revisit my response in post #6 (2nd paragraph) and reread it carefully, you'd find what's required to generate H-A trading signals in a backtest. I think it was very clear from the links and pointers I left in post #6.
profile picture

pestocat2

#9
Eugene,
I finally figured out where those Buy/Sell little icons come from. They are the trade dates/ time from the back test. It's so simple.
Gary
profile picture

Eugene

#10
Bingo! That's the message I was trying to reach you with: "These buy/sell icons are always the product of Strategy code."
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).