Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and 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. 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 Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and 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. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

[Live Coding Webinar] Build Your First Trading Bridge for…

In this course, you will be learning to build your own trading bridge using Python. This 60-minute session is perfect for traders, Python enthusiasts,...
Rajandran R
1 min read

[Webinar] Understanding and Mitigating Curve Fitting in System Trading

"Understanding and Mitigating Curve Fitting in System Trading"! This dynamic session aims to equip novice to intermediate traders, quantitative analysts, and financial engineers with...
Rajandran R
1 min read

P-Signal Strategy Long Only Strategy – Amibroker AFL Code

This tutorial provides an overview of the P-Signal reversal strategy, a quantitative trading strategy that utilizes statistical parameters and error functions to generate probabilistic...
Rajandran R
2 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