Moneycontrol PRO
HomeNewsBusinessMarketsCreated your algo? Here are three ways to start trading in a live environment

Created your algo? Here are three ways to start trading in a live environment

Similar to how an airline pilot will go through hours of simulated training, our algo needs to go through what it will be like in the real world.

June 15, 2019 / 11:33 IST
Vivek Gadodia

In the last installment of this 4-part series, we saw aspects which will show the likelihood of algorithms (algos) working in the future, the same way they have worked in the past.

We will also see another few simple but essential steps to complete the journey. Do we start trading the system now with capital? Or do we go in a more measured way?

Creating an algo is a four-part series:

Part 1: Interested in designing algos? Follow these tips

Part 2: Why scalability, nature of system and time frame are important for creating algos

Part 3: Here are 3 steps required to make your algo future-ready

Feed handler and order routing:

Now, the algo has to be connected to live market data and orders need to be generated from it. If we are going for manual execution, we may not need to build the order router.

But the feed handler is essential, which will read live market data and generate the signals. We can say now, here is where we separate the signal from the noise.

The algo program has to be tweaked somewhat where it can now read data from the live market instead of the historical data which it was designed for.

This stage requires one to use application program interface (APIs) provided by vendors. We need to start and stop the algo multiple times and run it for a few days to make sure that the algo is fine-tuned and behaves well.

The important parts to check are: a) Not generating incorrect signals – like a sell order coming instead of buy b) No infinite loop – where orders keep getting pumped one after the other.

Paper trading:

This stage is one of the most important when it comes to making sure that the plane you are going to fly will fly well. Paper trading means trading an account with virtual money and real market data in a simulated environment which will give you “as close as possible” to live market experience.

Similar to how an airline pilot will go through hours of simulated training, our algo needs to go through what it will be like in the real world. Interactive Brokers India has an excellent paper trading account facility.

After generating a few trades, we can see whether the paper trading statistics are similar to backtest or not, or do we get any alarming signs.

Risk management and go live: Now we are ready to trade the strategy

We need to configure which instruments we are going to trade and in what quantities. We can have additional checks around quantity not exceeding a certain number or daily loss not exceeding a certain value (especially in case of intraday systems).

Then we start the algo with a smaller capital than what we can trade it on. After running it on some minimal capital with a few stocks, we can then monitor the trades and if everything is going according to historical lines, we know that the algo is not misbehaving.

Then, as we get used to the algo and vice versa, we start scaling up! We are now, slowly and steadily, moving from the base camp towards our destination – Mount Everest!!

As a trekker, one knows that the journey will be full of ups and downs – with snow storms (drawdowns) and avalanches (maximum drawdowns).

Same goes with a system trader. At the end of the day, it is the journey (trek) which can be as enjoyable as reaching the peak (returns).

The author is the Co-Founder of Dravyaniti Consulting.

Disclaimer: The views and investment tips expressed by investment expert on Moneycontrol.com are his own and not that of the website or its management. Moneycontrol.com advises users to check with certified experts before taking any investment decisions.

Moneycontrol Contributor
Moneycontrol Contributor
first published: Jun 15, 2019 11:30 am

Discover the latest Business News, Sensex, and Nifty updates. Obtain Personal Finance insights, tax queries, and expert opinions on Moneycontrol or download the Moneycontrol App to stay updated!

Subscribe to Tech Newsletters

  • On Saturdays

    Find the best of Al News in one place, specially curated for you every weekend.

  • Daily-Weekdays

    Stay on top of the latest tech trends and biggest startup news.

Advisory Alert: It has come to our attention that certain individuals are representing themselves as affiliates of Moneycontrol and soliciting funds on the false promise of assured returns on their investments. We wish to reiterate that Moneycontrol does not solicit funds from investors and neither does it promise any assured returns. In case you are approached by anyone making such claims, please write to us at grievanceofficer@nw18.com or call on 02268882347