• Overview
  • Reviews
  • Comments (1)

PnF chartist

The script for point and figure charting.

Key Features:

  • ability to select price sources: prices offered by a broker via the MT5 terminal; prices offered by a broker via the MT4 terminal; quotes in csv files provided by Yahoo Finance;
  • ability to select price or price logarithm as the charting basis;
  • ability to select the box size range;
  • ability to select the reversal range (in boxes);
  • for quotes offered by a broker via the MT5 terminal - ability to select the time frame for charting purposes. 

Maximum number of bars the script can handle is 100,000.

Maximum number of Х-О columns in the chart is 100.

Please note the following recommendations as to the time frame value depending on the box size:

  • A chart with box size 1, 2, 3, 4 and a 3 box reversal can successfully be created on M1 time frame.
  • A chart with box size 5 and a 3 box reversal can successfully be created on M2 time frame.
  • A chart with box size 10 and a 3 box reversal can successfully be created on M5 time frame.
  • A chart with box size 20 and a 3 box reversal can successfully be created on M15 time frame.
  • A chart with box size 50, 100, 200, 500 and a 3 box reversal can successfully be created on H1 time frame.

Remember that in case of increased volatility of an instrument, a lesser number of bars for charting is required. 

The required directory structure of the terminal is shown in screenshot 1.

Screenshots 2-5 show the process of getting quotes from the Yahoo Finance website. By default, the name of the downloaded file will be table.csv. Don't forget to rename it, giving it any name convenient to you.

The script creates charts for all instruments selected in the Market Watch or for all files of imported quotes located under Import\MT4 or Import\Yahoo.

Right below the chart, you can see a volume logarithm for each column, e.g. (see the example below) for the first column we have 8.1, i.e. sales volume is 10^8.1=125 million shares. If quotes do not contain any real (non-tick) trade volume data, 0.0. will be displayed.

Below the volume data, you can see date/time of extremum in any given column (point of maximum - for X, point of minimum - for O).

Here is a typical chart:

Copyright (c) 2012-2014 Roman Rich
XOM, Box-100, Reverse-3


  102.3293 | .......................................................................................... | 102.3293
  100.0000 | ........................................................................................X. | 100.0000
   97.7237 | ..........................\.............................................................XO | 97.7237
   95.4993 | ..........................X\............................................................XO | 95.4993
   93.3254 | ..............X...X.X.....XO\.....................................................X...X.XO | 93.3254
   91.2011 | ..............XO..XOXO....XO.\....................................................XOX.XOXO | 91.2011
   89.1251 | ..............XO..XOXO..X.XO..\...................................................XOXOXOX. | 89.1251
   87.0964 | ..............XOX.XOXOX.XOXO...\......................................X.X.......X.XOXOXOX/ | 87.0964
   85.1138 | ..............XOXOXO.OXOXOXO....\...............\.....................XOXOX.....XOXO.O.O/. | 85.1138
   83.1764 | ..............XOXOX..OXOXO.O.....\..............X\\...................XOXOXO....XOX..../.. | 83.1764
   81.2831 | ..............XO.OX..OXO...OX.X...\.............XOX\\.................XOXOXO..X.XOX.../... | 81.2831
   79.4328 | ..............X..O...OX....OXOXOX..\......\.\.X.XOXOX\................XO.OXO..XOXOX../.... | 79.4328
   77.6247 | ..........X...X......O.....OXOXOXO..\...X.X\X\XOXOXOXO\.......\.......X..O.O..XOXO../..... | 77.6247
   75.8578 | ..........XOX.X............OXOXOXO...\..XOXOXOXOXOXOXO.\..\...X\......X....O..XOX../...... | 75.8578
   74.1310 | ..........XOXOX.........../OXO.O.OX.X.\.XOXOXOXO.O/O/O..\.X\..XO\.....X....OX.XO../....... | 74.1310
   72.4436 | ..........XOXOX........../.O.....OXOXO.\XO.OXOX.//./.O...\XOX.XO.\....X....OXOX../........ | 72.4436
   70.7946 | ........X.XO.OX........./........OXOXOX.X..OXOX/.....OX.X.XOXOXO..\...X....OXOX./......... | 70.7946
   69.1831 | ........XOX..O........./.........OXOXOXOX./OXO/......OXOXOXOXOXOX..\..X....OXO./.......... | 69.1831
   67.6083 | ........XOX.........../..........OXOXOXOX/.O//.......OXOXOXOXO/OXO..\.X....O../........... | 67.6083
   66.0693 | ........XOX........../...........OXOXOXO/../.........OXOXO/OX/.OXO...\X....../............ | 66.0693
   64.5654 | X.....X.XO........../............OXOXO./.............OXO./.O/..O.OX...X...../............. | 64.5654
   63.0957 | XO..X.XOX........../.............OXOX./..............O...../.....OXOX.X..../.............. | 63.0957
   61.6595 | XO..XOXOX........./..............OXOX/...........................OXOXOX.../............... | 61.6595
   60.2560 | XOX.XOXOX......../...............OXO/............................OXOXOX../................ | 60.2560
   58.8844 | XOXOXO.OX......./................OX/.............................O.O.OX./................. | 58.8844
   57.5440 | XOXOX..O......./.................O/..................................OX/.................. | 57.5440
   56.2341 | XOXO........../................../...................................O/................... | 56.2341
   54.9541 | XO.........../......................................................./.................... | 54.9541
   53.7032 | ............/............................................................................. | 53.7032

             887777778787778877877877778887777888878787787787887878877778777877787887777877877787777777
             ..........................................................................................
             124284793818395267187375751508688411071717727928228065186391848448805268596476170915024495

             222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
             000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
             000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111
             555566666667777777777888888888888888888888888888889999999999999000000011111111112222333334
             ..........................................................................................
             011100000010000000011000000000111111111111111111110000000000001000000000000000110011000110
             901212468921237888912112235999000000000000111112221113345567781145556723467889011601145022
             ..........................................................................................
             122231212101002001212230202112000111222223011220120120220111212220021021222012221001212020
             905700034240553686121306571699367046024790434045622565328413773906758136631952759196471963

 

No reviews