200-Day Moving Average Strategy Example
This post explains how to create a new strategy from a custom indicator.
Start by creating a custom indicator to capture the cross down of the 200-day moving average. This post explains how to do this.
From the top page navigation menu on the right, click the icon and select the chart page. This will open a new chart. Now select the symbol of choice. We’ll use Bitcoin (BTCUSD) for the purpose of this example.
Next click the calendar icon to set the date range. Because the indicator is based on a 200-moving average, the chart needs to have enough bars so that it can create data points.
Click the Indicators dropdown from the toolbar and in the search box, type the name of your custom indicator. Now click on the indicator from the list select it and add it to the chart.
The indicator should now show markers on the chart at bars where there are cross down events. Scroll the chart using the mouse wheel or your device’s equivalent.
Next click on the hat icon from the toolbar. This will start training mode and display the training panel. Click anywhere in the page or use the close icon to collapse the panel. Training mode should still be active which is highlighted by the hat icon displayed in red.
With the chart zoomed in click on one of the candles that has a cross down event. This should display a circle which marks the open trade of a training point. Now click on a second candle to mark the closing. This creates one training point and this should be added to the list in the training panel.
This is a point indicator so we only need one training example. From the training panel, click the Train button. This should run the training system and display a message once complete. When training is done, click on the Strategies tab from the page navigation menu.
The new strategy should appear at the top of the list. To change the name, click on the icon to open the settings pane. Now click the settings tab, and enter a name for the new strategy. Click save. One saved, the list should update with the new name.
Now, to check that the strategy was properly trained, we can compare the strategy to our original indicator. Open a new chart again, and follow the same procedure to add an indicator. This time, enter the new name that you chose in the step above. Click on the name of the strategy. When used as an indicator, the strategy will just output its value on the chart.
Secondly, add the custom indicator to the chart following the steps as before. Remember to expand the date range of the chart if necessary.
The sell signals created by the strategy, should line up with our indicator as the image above shows. This shows that the strategy was properly trained with of our custom indicator.