Quote from AItrader:
fullautotrading,
thank you for your exhaustive replies as always.
...
Could you please provide a concrete example for the numeric variations in the last two months of:
a) the Short term SDX and a Long term SDX
b) Speed = Sydeways Speed + Vertical Speed
calculated on the FAS instrument in the current portfolio?
...
Hi AItrader,
here are the values (<b>resampled</b> series) currently stored in one of the FAS layer we have "locked" (see picture) from which the current SDX (<b>signed direction index</b>) is computed:
<table > <tr> <td style = "font-family: Courier New; width: 401px" > <code>
SDX <b>short term</b> - gridline hits:
2013-12-09 14:24:15:109 83.88
2013-12-09 14:29:03:081 83.97
2013-12-09 14:35:12:119 84.06
2013-12-09 15:26:16:979 83.97
2013-12-09 15:30:48:955 84.06
2013-12-09 15:36:56:810 83.97
2013-12-09 15:45:14:336 84.06
2013-12-09 15:48:42:506 84.15
2013-12-09 15:51:03:691 84.06
2013-12-09 15:59:48:247 84.15
2013-12-09 16:00:01:797 84.24
</code> </td>
<td style = "font-family: Courier New; width: 450px" > <code>
SDX <b>long term</b> - gridline hits:
2013-12-06 13:53:24:261 83.43
2013-12-06 15:32:04:523 83.25
2013-12-06 15:51:05:079 83.25
2013-12-09 09:39:09:991 84.15
2013-12-09 09:57:08:516 84.33
2013-12-09 10:19:49:207 84.15
2013-12-09 10:51:54:485 84.15
2013-12-09 11:48:44:364 84.51
2013-12-09 13:20:56:585 84.42
2013-12-09 14:24:15:109 83.88
2013-12-09 16:00:01:797 84.24
</code> </td> </tr> </table>
For the Short term and "longer" term SDX I am using currently 2 list of prices ("gridline-hit prices"), one long 11 and the other one long 101.
They are both resampled to size 11, so the first list is the same in the complete and "resampled" version. The second complete (trailing) list (from which the resampled version is obtained) is instead the following:
SDX long term - gridline hits:
<code>
2013-12-06 13:53:24:261 83.43
2013-12-06 13:55:00:541 83.52
2013-12-06 13:57:40:558 83.43
2013-12-06 14:06:44:779 83.52
2013-12-06 14:14:43:097 83.43
2013-12-06 14:19:54:672 83.34
2013-12-06 14:23:46:145 83.43
2013-12-06 14:46:23:667 83.34
2013-12-06 14:54:07:308 83.25
2013-12-06 15:11:07:226 83.16
2013-12-06 15:32:04:523 83.25
2013-12-06 15:36:12:233 83.16
2013-12-06 15:36:25:658 83.07
2013-12-06 15:36:42:303 82.98
2013-12-06 15:41:00:980 83.07
2013-12-06 15:44:36:258 82.98
2013-12-06 15:45:27:423 83.07
2013-12-06 15:46:04:723 83.16
2013-12-06 15:48:46:854 83.07
2013-12-06 15:50:38:864 83.16
2013-12-06 15:51:05:079 83.25
2013-12-06 15:59:30:980 83.34
2013-12-06 17:15:48:177 83.25
2013-12-09 08:42:10:344 83.88
2013-12-09 08:48:09:329 83.79
2013-12-09 09:10:56:531 83.97
2013-12-09 09:11:09:956 84.06
2013-12-09 09:27:52:370 84.24
2013-12-09 09:29:59:705 84.15
2013-12-09 09:39:01:081 84.24
2013-12-09 09:39:09:991 84.15
2013-12-09 09:41:26:667 83.97
2013-12-09 09:45:53:794 84.15
2013-12-09 09:46:08:674 84.06
2013-12-09 09:47:19:179 83.97
2013-12-09 09:47:31:624 84.06
2013-12-09 09:49:03:504 84.15
2013-12-09 09:49:57:244 84.06
2013-12-09 09:51:20:466 84.15
2013-12-09 09:55:37:606 84.24
2013-12-09 09:57:08:516 84.33
2013-12-09 09:57:42:686 84.42
2013-12-09 09:59:12:123 84.60
2013-12-09 09:59:44:278 84.51
2013-12-09 10:01:41:078 84.42
2013-12-09 10:05:59:877 84.33
2013-12-09 10:08:01:382 84.15
2013-12-09 10:08:28:217 84.24
2013-12-09 10:09:18:112 84.15
2013-12-09 10:14:09:157 84.24
2013-12-09 10:19:49:207 84.15
2013-12-09 10:22:48:213 84.06
2013-12-09 10:27:27:109 83.97
2013-12-09 10:30:22:144 83.88
2013-12-09 10:32:24:234 83.97
2013-12-09 10:38:51:953 84.06
2013-12-09 10:41:38:518 83.97
2013-12-09 10:46:42:715 83.88
2013-12-09 10:50:55:686 83.97
2013-12-09 10:51:27:605 84.06
2013-12-09 10:51:54:485 84.15
2013-12-09 10:54:22:342 84.24
2013-12-09 10:57:21:888 84.15
2013-12-09 11:06:00:244 84.24
2013-12-09 11:14:10:282 84.33
2013-12-09 11:15:49:492 84.42
2013-12-09 11:16:47:367 84.33
2013-12-09 11:23:58:877 84.42
2013-12-09 11:32:37:738 84.51
2013-12-09 11:36:25:017 84.42
2013-12-09 11:48:44:364 84.51
2013-12-09 12:02:18:576 84.60
2013-12-09 12:05:58:586 84.42
2013-12-09 12:11:49:788 84.33
2013-12-09 12:28:23:905 84.24
2013-12-09 12:43:11:158 84.33
2013-12-09 12:45:25:528 84.42
2013-12-09 12:52:41:359 84.33
2013-12-09 13:05:07:337 84.24
2013-12-09 13:12:01:388 84.33
2013-12-09 13:20:56:585 84.42
2013-12-09 13:25:46:693 84.51
2013-12-09 13:31:26:654 84.42
2013-12-09 13:41:43:850 84.33
2013-12-09 13:46:37:291 84.24
2013-12-09 13:48:35:226 84.33
2013-12-09 13:53:21:257 84.24
2013-12-09 14:09:29:901 84.15
2013-12-09 14:18:23:484 84.06
2013-12-09 14:20:47:109 83.97
2013-12-09 14:24:15:109 83.88
2013-12-09 14:29:03:081 83.97
2013-12-09 14:35:12:119 84.06
2013-12-09 15:26:16:979 83.97
2013-12-09 15:30:48:955 84.06
2013-12-09 15:36:56:810 83.97
2013-12-09 15:45:14:336 84.06
2013-12-09 15:48:42:506 84.15
2013-12-09 15:51:03:691 84.06
2013-12-09 15:59:48:247 84.15
2013-12-09 16:00:01:797 84.24
</code>
Actually this index is proving to be very useful to the purpose of creating games which better follow directional moves. Lately, I am using it more extensively to enhance the capability of the entries to follow directional (T players) moves, as opposed to the entries which wait for reversals (CT players).
Algorithmically, it is also suitable as it is very simple (and fast) to compute (more details on the computations are on this page:
http://www.datatime.eu/public/gbot/MetricsForAlgorithmicTrading.htm#SDX ).
As you can see from the timestamps, it works quite tight, and looking at a short timespan. So, practically, we can provide a pretty fast reaction to price moves and direction changes, with good <b>noise-filtering</b> capabilities (due to the fact that the prices are taken on the price grid, and so not running after tickdata and subject to the influence of possibly different tickrates).
Clearly, the reason I use both short and "longer" term SDXs, is to be able to react quickly to possible directional changes, accelerations ("momentum") or slow down ("fading").
<img src="http://www.elitetrader.com/vb/attachment.php?s=&postid=3911994" />