Signal or not? - I
Welcome to the chapter on signals! A signal is an interaction of market data with indicators, or indicators with other indicators, which tells you whether you may wish to buy or sell an asset. Signals can be triggered for a variety of reasons. For example, a signal may be triggered by a shorter lookback moving average going from less than to greater than a longer lookback moving average. Another signal may be triggered when an oscillator goes from being above a certain set quantity (for example, 20) to below, and so on.
In this chapter, you will see various ways in which indicators interact with each other. You will focus on the strategy you developed in the previous chapter (strategy.st
). To keep thing simple, you will remove all of the RSI indicators and stick to the DVO (David Varadi's Oscillator) indicator you implemented near the end of Chapter 3.
For this exercise the dataset test
is preloaded in your workspace. Subset test
between September 10th, 2010, and October 10th, 2010, using
test["YYYY-MM-DD/YYYY-MM-DD"]
Is SMA50 greater than or less than SMA200 on September 20?
This exercise is part of the course
Financial Trading in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
