Example 5

Top  Previous  Next

Example 5.wrk (workspace) which contains charts Example 5 QQQQ Range.cht and Example 5 QQQQ 4.cht

 

This workspace contains charts of QQQQ using .50 Range Bars and 4-minute bars.  The charts set up a data connection through use of the SendVolume and GetVolume indicators. The SendVolume indicator transmits volume data from the Range Bar Chart to the 4-minute bar chart.  This volume data is included in two of the inputs to a neural network prediction on the 4-minute chart.

 

The 4-minute bar chart includes an indicator which receives this data:

 

               Ln(Divide(GetVolume(98,Date),Avg(Volume,5)))

 

which divides the volume from the Range Bar (the volume that was necessary to move QQQQ by .50) by the average volume in the last 4 minutes. This results in a momentum indicator. If the stock moved .50 in the last 4 minutes, the result is 1. If the stock required more time to make the .50 move, then the result is greater than 1. The result goes up as the momentum goes down. The Ln function is applied to reduce the effect of large spikes.  You'll see on the chart that this data stream that includes the GetVolume indicator often displays a value of 0.  This occurs because the receiving 4 minute chart updates more frequently than the sending range bar chart.  An alternative strategy would be to use the SendStream and GetStream indicators rather than the SendVolume and GetVolume indicators, resulting in a continuous data stream.

 

The neural net examines only (High+Low+Close)/3 and the momentum indicator (along with 1 smoothed version of each) in order to make its prediction.

 

Note: GroupID = 0 is special and will automatically reference all groups regardless of GroupID number