Automation Instructions
Step 1. Create a strategy in TradingView
Let's use Altair 5min long-short strategy as an example. After copying the code from DayTraderPlaybook, create a corresponding strategy in TradingView. Make sure that you select NQ futures, 5min timeframe, and provide names to the strategy as well as save it as a separate layout (top right corner).
Ensure that the strategy's results are corresponding to those shown on DayTraderPlaybook. To do that, go to 'Strategy Tester' and inspect the equity curve of the strategy.
Before you create your Alert in TradingView, make sure that the strategy settings do not contain commissions and / or slippage. Those are important to properly backtest the strategy, however, they should not be set if you need to automate the strategy via TradersPosst / SignalStack.
Step 2. Create an Alert in TradingView
In order to create an Alert in TradingView, click on 'Alerts' button on the top right menu. After that, click on '+' icon, which will open up an Alert Popup window.
Select a strategy in the Settings -- Condition and then provide an Alert Name and edit the Message as shown below.
You can also copy the message from here (if you want the system to trade NQ contracts, then replace MNQH24 with NQH24):
{
"ticker": "{{MNQH24}}",
"action": "{{strategy.order.action}}",
"quantity": "{{strategy.order.contracts}}"
}
​
Also note that these are specific quarterly contracts and they have to be replaced once per 3 months.
​
After that, click on 'Notifications' and make sure that the Webhook URL is blank (we will use it later to insert a proper url from TradersPost).
Step 3. Create a Webhook in TradersPost
Once you sign up in TradersPost, go to Webhooks and create a new Webhook.
When creating a new Webhook, you should do the following:
​
- Provide a name (e.g., Altair)
- Select 'futures' as Asset Class
- Check 'Allow any ticker'
Click 'Save' and a new Webhook will be created. You can now copy 'Webhook URL' and paste it into the TradingView web hook url field and then update the Alert. This will technically connect a TradingView alert with the TraderPost.
Step 4. Create a Strategy Subscription in TradersPost
Once you create a new Webhook, it is time to create a Strategy in TradersPost. You can do that by clicking on 'Create a new strategy' with this webbhook.
You will have to provide the following information when creating a new strategy that is linked to the Altair web hook:
- Name (by default it will use the web hook's name 'Altair')
- Asset class - futures
- Check 'Allow any ticker'
​
After a new strategy was created successfully, you will have to 'link' it to one of the Tradestation's accounts. Ideally, you want to link 1 strategy per 1 brokerage account, especially if the strategy is long-short. If you run multiple long-only strategies, then they can be all linked to just 1 brokerage account.
Once you link a Strategy to one of your brokerage accounts, you will have to select several additional parameters:
- Check 'Auto submit' -- this automates the trading
- Sides -- for long-short strategies, select 'Both'
- Check 'Disable side swapping' for long-short strategies
- Check 'Use signal quantity'
- Check 'Entry as market orders'
- Check 'Exit as market orders'
The last action is to Enable the Strategy Subscription.