Everything starts with an idea. However, an idea is only worth 2 cents. How do you translate that idea into an actual executable automated trading strategy?
If you know how to code and want to learn Pine Script, there are plenty of free resources that you can use to help with getting started.
If you don’t know how to code and aren’t up for the challenge of learning how to code, you can very easily hire a Pine Script developer to translate your idea into code. You can find Pine Script developers on sites like Fiverr or Upwork. We’ve compiled a list of some Pine Script developers here that have helped other TradersPost customers build their strategy.
Finally, you can use the TrendSpider No Code strategy builder to build your strategy and rapidly test ideas without having to write any code.
Both TradingView and TrendSpider strategies can be integrated with TradersPost and automated in your broker.
Once you have your idea converted into a strategy, you need to backtest it. Ideally you should backtest your strategy across multiple different time periods when the market conditions are wildly different. The goal is to get an idea of how robust your strategy is and how it will perform in different market conditions.
Be sure to account for slippage in your backtest. Slippage can occur due to the spread between the bid and ask but you also have to account for slippage caused by the time in between when a signal is generated and when the order is executed.
If you’ve gotten this far and your backtest is looking good, then you are ready to forward test your strategy in a paper broker. You can read more about paper trading here.
It is important to compare the fill prices in your strategy backtest to the fill prices in your paper broker. If there are big differences in fill prices, then something probably isn’t configured quite right and you may have too much or too little slippage configured in your backtest.
How long should you forward test your strategy? There is no such thing as testing too much, but usually it is good to forward test for at least a month, if not longer. The more trades you take and the more data you collect, the more you will understand about your strategy.
We recommend using either Alpaca or TradeStation paper brokers to forward test your strategies.
If you’ve forward tested your strategy and everything is still looking good, then you are ready to try it with a live broker. It is important to test with small size and monitor closely when you start testing with live money. Use a quantity of 1 to start.
Just like you did with your paper trading, compare the fill prices in your live broker to the fill prices in the backtest. If there are differences between the fill prices, then you likely need to tweak your slippage settings in your backtest to be more accurate.
Congratulations! If you got this far then you have an automated trading strategy live. Your journey doesn't end here. Automated trading requires constant tweaking, learning and evolving. The market is forever always changing. All strategies work, just not all the time. The trick is knowing which strategies to run and when. So ideally you would have multiple strategies to choose from depending on some macro market conditions. Good luck on your automated trading journey!
DISCLAIMER:
Trading in the financial markets involves a significant risk of loss. The content and strategies shared by TradersPost are provided for informational or educational purposes only and do not constitute trading or investment recommendations or advice. The views and opinions expressed in the materials are those of the authors and do not necessarily reflect the official policy or position of TradersPost.
Please be aware that the authors and contributors associated with our content may hold positions or trade in the financial assets, securities, or instruments mentioned herein. Such holdings could present a conflict of interest or influence the perspective provided in the content. Readers should consider their financial situation, objectives, and risk tolerance before making any trading or investment decisions based on the information shared. It is recommended to seek advice from a qualified financial advisor if unsure about any investments or trading strategies.
Remember, past performance is not indicative of future results. All trading and investment activities involve high risks and can result in the loss of your entire capital. TradersPost is not liable for any losses or damages arising from the use of this information. All users should conduct their own research and due diligence before making financial decisions.