Hi,
i want to share my P&F Chart indicator.
You will need the last TS2 Version, because i use the "getSyncHistory" function to load data source.
This is the "pure" Version. No signals no trendlines at the moment.
You can put the indicator to every TimeFrame .
Point & Figure will allways calculate at the specified TimeFrame not on the chart Timeframe.
The default Timeframe is "m1".
The MaxRows setting is for limiting the creating of TextOutputstreams. The default is 200. If you expect to see more then 200 rows in one column X or O or recieving an error that the index is a nil, then set it higher number.
The calculation has two phases.
Phase 1:
P&F will be calculated with the loaded source data. Smaller Timerframes so much accurate the calculation. Also take attention to the boxsize and the limitation of the maximum 15000 bars , which can be loaded. If your boxsize is high and your timeframe small, then it will hapen, that you will see not so much columns at the chart. So take higher source timeframe for bigger boxsizes to see more columns.
Phase 2:
History calculation is done, and you can see the first columns on the chart. From this point the calculation is done at each tick, and you will see the most accurate calculation.
Indicator can reset and a redraw occurs. This is normal and cannot be fixed, otherwise the TS will crash or the indicator have an error.
A reset of the indicator will occur, when more history data were loaded to the chart. This can happen , if you zoom out or scroll the chart to see data from the past.
If the indicator recieved a reset , then the calculation will start again with phase 1 and your most accurate live column will overwrite by the less accurate phase 1 calcuation.
Update P&F V 1.1- fixed some Bugs
- increase Performance (little bit)
- Font can be changed in the settings
- Font Size can be changed in the settings
- added counter for next row or next reversal
- added support indicator source. You can use now the P&F as indicator source.
- added Candle Color DO NOT CHANGE IT , candle color is automatic set to chart Background color, if indicator is loaded. If you change it other than the chart background color, then candle will be visible.
File: