Point & Figure Source Code
Author: dansmo
Creation Date: 4/15/2010 9:36 AM
profile picture

dansmo

#1
Hi,

is there any way to get the P%F source?
I´d like to modify it to get a P&F chart that is based on recent volatility instead of points/percentages.
profile picture

Cone

#2
All Trending ChartStyles are proprietary, closed source.

Where is the recent volatility method discussed?
profile picture

dansmo

#3
I just like to have recent ATR as a measure for box size instead of percent.
I think it is used here:
http://www.amibroker.com/library/detail.php?id=348

So, box size would change over time and fit to volatility. Would this be something you would be thinking about to integrate in the already available P&F implementation?
profile picture

Eugene

#4
Sounds similar to Adaptive Renko.
profile picture

dansmo

#5
Yes, similar logic would be good for renko and p&f charts.

CODE:
Please log in to see this code.
profile picture

Cone

#6
Sure, we can consider adding that method, but it won't happen for some time, maybe later this year.
profile picture

dansmo

#7
@Cone
How realistic is this?
profile picture

Cone

#8
Realistic for doing it by the end of the year? It's hard to say. I start almost everyday with a plan of things I'd like to do, but I end up working on the things that pop up that need to be done sooner. This PnF modification would be at the end of the queue.
profile picture

dansmo

#9
This lookout does not fit to my needs. So I will do it myself.
If only I would not have to start from scratch...


profile picture

dansmo

#10
What I am trying to do first is to replicate a renko chart and modify it afterwards to make it atr based.
However I am having problems right in the beginning.

With this code I try to set the bar width.
CODE:
Please log in to see this code.


Then I render the bars with this one:
CODE:
Please log in to see this code.

What I get is a chart that is missing the bars I set to zero. Good thus far. However, one the bar after thos bars DrawEllipse paints the chart for every bar that was set to zero, resulting in this:


Why is it painting these multiple ellipses?
profile picture

dansmo

#11
It would really help if there were a open source of a trending chartstyle.
profile picture

Eugene

#12
Please see Robert's reply dated 4/15/2010 10:51 AM. Wealth-Lab is a proprietary, closed source application owned by Fidelity.
profile picture

dansmo

#13
I fully understand. However, I hope that someone could provide his own code of a trending chart style that would give hints in the right direction.
profile picture

dansmo

#14
one further question I need help with:

currently I draw four lines to paint the bricks of a renko chart to the chartpane. However, I´d like to replace this with Draw.Rectangle.
However, I seem to have a misunderstanding regarding the height parameter:

CODE:
Please log in to see this code.


The DrawLine code works fine. What am I doing wrong with DrawRectangle then?

profile picture

dansmo

#15
No one any idea on this?
profile picture

dansmo

#16
@Cone

QUOTE:
Sure, we can consider adding that method, but it won't happen for some time, maybe later this year.


I am pretty sure at this point in time that I am able to create this on my own. So, if I decide to provide this to the community there is no need for you to program this.
profile picture

Cone

#17
Excellent!