TPnF Class
Author: SBondorowicz
Creation Date: 7/18/2009 2:55 PM
profile picture

SBondorowicz

#1
I am attempting to code a couple of P & F based strategies and I have a couple of questions. Is there anyway to initialize the TPnF class so that it uses the automated settings available from the chart settings dialog? I am also having problems reconciling the signals obtained from DblTopDblBottom with the P & F charts. I can see double bottoms/tops on the charts which are not being detected on the +- 2 return from this function.
profile picture

Cone

#2
QUOTE:
Is there anyway to initialize the TPnF class so that it uses the automated settings available from the chart settings dialog?
You can access the uxPnFChartStyle.* properties from the WealthLabConfig.txt in the Data folder, but it's only updated for certain events; shutdown is one of them.

QUOTE:
I can see double bottoms/tops on the charts which are not being detected on the +- 2 return from this function.
If you can be more specific about the data, symbol, PnF settings, and dates, I'll take a look.
profile picture

SBondorowicz

#3
I don't seem to have that config file in my data folder. Using the Point and Figure Basic script rather than my test script and looking at AMDT I see a buy signal in the X column dated 10/07/2007 (I'm from the UK so that is a British date!) and the corresponding sell signal is at 30/09/2008 whilst the chart shows at least 3 sell signals between these dates. According to the chart it is using a 0.5 box size with a 3 reversal.
profile picture

Cone

#4
On which exchange is AMDT trading? Company name?

On you're way back with that answer, check to make sure that the both PnF chart style settings and the PnF object are both using the Log method, or conversely, not using the arithmetic (not Log) method.
profile picture

SBondorowicz

#5
Thanks, you have solved that for me. My P&F chart settings didn't agree with the settings passed to the PnF object. I had assumed that the script settings overrode the chart settings. Anyway my signals are now correct so I am happy. I may have more questions later since I exploring whether it is possible to script detection of the classic buy and sell formations.
profile picture

Cone

#6
That's good news.

Since you're from the UK and probably reading du Plessis, here's a link to a script that you'll probably want to have: Bullish Percent Index, BPI.
profile picture

zorgnak

#7
The basic version works fine but the full strategy gives an error msg asking if I'm missing an "assembly reference"?
profile picture

zorgnak

#8
Disregard last...I figured it out. Eliminated the offending code.
profile picture

Eugene

#9
You do not have the Community ChartStyles library installed.
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).