Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

Simple Excel Filter based on SMA – Backtesting of Simple Trading System

1 min read

Watercolor illustration of a laptop spreadsheet, line chart and calculator for an SMA-based backtesting filter
 

Here is a simple Excel SMA filter to find out hot Nifty stocks.

And i use to compare the 30day and 50 day Simple Moving Average with the current price
and If current price is greater than the 30 and 50 day Simple Moving Average(SMA)
then i like to rate as a hot Nifty Stock

You can get the SMA values from moneycontrol website

Open Varsity: 13 free courses for traders and investors

FREE AND SELF-PACED

Open Varsity: 13 free courses for traders and investors

From stock market basics to options strategies, quant trading and taxation, built around Indian market examples.

  • 407 chapters, beginner to expert
  • Options, Python, AmiBroker AFL and quant tracks
  • Risk management and trading psychology

http://www.moneycontrol.com/technicals/simplymovingavgs.php

And After Scanning Using MS Excel i found  these stocks from Nifty

matched the criteria

Cipla
GAIL
HDFC Bank
HUL
Maruti Suzuki
NTPC
PNB

So Its time to track the performance of these Nifty stocks and i like to produce a weekly report
based on the performance of this simple trading system.if the performance is good over a week

then the same will be extended to the non nifty stocks.

Here Iam not betting on the trading system. Just Simply  Backtesting

You can download it from here…. With just a simple formula and an Excel SMA filter to find out
whether a stock is hot for the next week

http://rajandran.googlepages.com/StockFilter19thSep.xls

Futher Filters RSI(14 day) and Stoch(5,3) are added and the stock
is picked if the RSI>50 and stoch is facing upwards and not above 80.

If we apply this filter we would get these reults

Cipla(232.85)

– RSI>50 and stoch facing upwards
– Selected – RSI Value – 54.53 and Stoch – Upwards and not above 80

GAIL(418.15) – RSI>50 and stoch facing upwards – Selected

– RSI>50 and stoch facing upwards
– Selected – RSI Value – 55.95 and Stoch – Upwards and not above 80

HDFC Bank(1,299.55)

– RSI>50 and stoch facing upwards
– Selected – RSI Value – 57.02 and Stoch – Upwards and not above 80

HUL(245.20)

– RSI>50 and stoch facing upwards
– Selected – RSI Value – 52.46 and Stoch – Upwards and not above 80

Maruti Suzuki(741.05)

– RSI>50 and stoch facing upwards
– Selected – RSI Value – 64.66 and Stoch – Upwards and not above 80

NTPC(182.95)

– RSI>50 and stoch facing upwards
– Selected – RSI Value – 58.97 and Stoch – Upwards and not above 80

PNB(523.65)

– RSI>50 and stoch facing upwards
– Selected – RSI Value – 59.75 and Stoch – Upwards and not above 80

so almost all the stocks are ready to be backtest for the week.
And this is a continious process. i.e if the stock fails meeting the
SMA filter criteria and RSI and stocastic criteria it.. We should simply exit the stock and the process to be repreated every end of the day until the week ends.

And you may further filter based on ADX, EMA, Money Flow , Candle Stick Patterns,Fibonacci, Pivot Points until you got satisfied…. But the ultimate aim is to find a profitable trade. And if the trade yield you 5-10% returns. It is considererd as a success and if fails the above said criteria then it means your stop loss got hit.

Remember this trading system may be a failure… Here to backtest the trading
system only as i used SMA like 30 and 50 based on the available data on the net
and also easy to track..

Disclaimer: Not advise to get into trade based on this info as the aim of this game is to find a profitable strategy

Happy Backtesting Week!!!!

Source:
www.marketcalls.in

Marketcalls Elite Traders Club

MEMBERSHIP

Marketcalls Elite Traders Club

Every Marketcalls course and live mentorship in one membership: 127 courses and 2,500+ hours of learning.

  • Market Profile, Orderflow, AFL, Pine Script and Python
  • Live mentorship and TradEdge trading room
  • Premium tools and the Elite Slack community

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

One Reply to “Simple Excel Filter based on SMA – Backtesting of…”

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More