Mar
25

Case Study: Custom $TICK

This example build a TICK index with a custom symbol list. The advantage of having a custom tick index is it can be updated as fast as 1 second instead of exchange broadcast $TICK which update every 10 seconds, also with custom tick index calculation value will be based on your own symbol list instead of all exchnage traded symbols.

This example will only show real-time formula part, refer to S&P 500 TICK16 Index Data Generation article on how to generate historical data.

Here is the definition of custom TICK in Breadth Definition Editor window.

NeoBreadth custom tick

Note: Quote window field UD is used instaed of TICK, because TICK returns total tick count for a symbol where as UD returns 1 for uptick and -1 for downtick.

Step 1: Make custom symbol list

Use symbol list manager to create custom symbol list. To create a symbol list you can either modify from an existing symbol list or create new one from scratch.

I created a new symbol list name Sample with some of my favor blue chip stocks. I kept this list short to ensure a faster data generation, but this list can be any size of your choose.

Symbol list manager

For detail on operation of symbol list manger refer to help file section: Operation Guide> Symbol List Manager Operation Guide.

Beside using symbol list manager, symbol list can also be created using external editor like notepad. This is possible because a symbol list in NeoTicker is a one symbol per row text file.

Step 2: Adding custom breadth calculation

Open NeoBreadth manager at main menu Manager> NeoBreadth.

  • At Name field enter a name, I used MYTICK.

    This is an overall name for a group of symbols that uses the same breadth definition.

    One breadth definiton have multiple symbols because, a definition can be assigned with multiple symbol list, this will allow you to generate different breadth calculation base on different sectors.

  • Time Frame, Time Slot and Freq field I will keep settings from TICK16.
  • At Real-Time Formula field enter UD.
  • Click Save button to creat a new breadth definiton.
  • Since new symbol name and list are required, so go into Breadth Symbols for Data Collection section and click on Delete All button to remove all symbols that are inherited from TICK16.
  • Next click on Add button to add a new symbool.

NeoBreadth Manager

  • Rename default holder symbol NB$1 to TICK_10. This can be any name of your choice.
  • Select Sample as symbol list.
  • Click on Save button at upper right hand side of Breadth Definition Editor to save this breadth defintion.

TICK10 result

This complete creation of a custom $TICK symbol, add TICK_10 symbol in a chart or quote window to see the resulting calculation.

Blog Developed
By ContentRobot