Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. 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. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Absolute Month on Month Returns – Amibroker Profit Table AFL Code

1 min read

Amibroker backtesting results provide profit table in the form of compounded values. However, most of the traders when comes to real life trading they prefer using fixed capital as position size. If you want to test the profitability of your system in Month on Month Absolute terms then this article is for you.

One of the reasons why we came up with Absolute Returns – Profitable table amibroker afl code last time. And this time at our trader’s workplace, yet again my partner asked: “is it possible to get a Month on Month Profit/Loss table in Absolute Percentage on Initial Capital rather than in compounded percentage terms?”

Amibroker stores the Profit Table Computation in 3.Profit Table under /formulas/reports folder. with a simple tweak one can code for Absolute Percentage on Initial Capital rather than in compounded percentage terms.

Here is the Compounded Returns and Absolute Month on Month Returns – Profitable Table for one of our upcoming intraday trading system – v-Lintra Ultimate.

Compounded Regular Profit table

Absolute Month on Month Returns (in %)

Steps to Install Profit Table

1)Download 5.Absolute Month on Month Returns ( in %)

2)Unzip and copy the file 5.Absolute-Month-on-Month-Returns-in.afl to the folder /amibroker/formulas/reports/

3)Now Run Backtest on your trading system.

4)Go and check the Backtest reports where you will get Absolute Month on Month Returns (in %) Profit/Loss Table as an add-on to your existing backtest report.

System Parameters

1)Backtesting Window Length – Jan 2011 – Oct 2017
2)Commissions and Slippages – 0.65%
3)Trading Style – Portfolio Based Intraday Trading
4)No of Stocks in Portfolio – 50 stocks
5)Stock Selection Process – Random Stocks
6)Portfolio Stops Applied – No

Download the Complete Backtest Report of V-Lintra Ultimate – Proprietary Trading System and Part of TradeStudio V2.0.0.2

Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. 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. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Line Trading – OpenAlgo Automation Module for Amibroker Users

The line Trading Automation tool is designed for Manual traders who want to perform level-based trade execution faster and also bring some advanced trade...
Rajandran R
55 sec read

Mini Certification Course on Algorithmic Trading

Welcome to the Mini Certification on Algorithmic Trading using Amibroker and OpenAlgo! This comprehensive 4-part series is designed to equip you with the knowledge...
Rajandran R
1 min read

Pivot Reversal Strategy – Tradingview Pinescript to Amibroker AFL…

Pivot Reversal Strategy is a popular in-built strategy in Tradingview Platform. Here I had attempted to convert the pinescript v5 to Amibroker AFL Code....
Rajandran R
3 min read

5 Replies to “Absolute Month on Month Returns – Amibroker Profit Table…”

  1. How to get this Proprietary Trading System of TradeStudio V2.0.0.2 ? Is there any website of marketcalls is selling it ?

  2. Are these calculations done with considering brokerage and Tax one have to pay while Trading in Market

  3. Hi Rajandran,
    I use daily candle
    Can you help me write a simple afl with the following conditions:

    I want candle low is less than ma(close,50) within last 3 days (including current day)
    I want candle open is greater than ma(close,50) within last 3 days (including current day)
    I want candle close is greater than ma(close,50) within last 3 days (including current day)

    what i reach so far is:

    but i not sure about whether the code actually means what i want to achieve. Basically i have a problem with within last 3 days. Low has to be less than MA(close,50) for any of the of the day of the last 3 days and so on for others.

    Filter=(LowRef(MA(Close,50),-3)) AND (Close>Ref(MA(Close,50),-3));

    pls help.

    Thanks

Leave a Reply

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