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)

Profit Table – Amibroker AFL Code

14 sec read


[wp_ad_camp_5]

 
Here is an another interesting afl code which plots the Profit table for any sort of Instruments in Amibroker.
Month-on-Month , Year-on-Year, Average monthly returns in terms of percentage can be plotted using this
afl code. Sample AFL code for Nifty has been shown in the above snapshot(Click on the table to get an enlarged view)

Download the AFL code for Profit Table

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

7 Replies to “Profit Table – Amibroker AFL Code”

  1. Problem found here

    LastYrValue = eq[ startbar ];
    LastMoValue = eq[ startbar ];

    Error = 10, Subscript out of range, you must not access array element outside 0..(Barcount-1)range

    Looking for solution.

  2. Dear Mr. Rajandran,
    Could you please check up the accuracy of this profittable afl, for one months data it works but for longer duration data it is not giving the correct results, could you please explain the logic used.
    Thanks,

  3. Dear Rajandran,

    Are that meaning of Month-on-Month this month close minus last month?
    e.g Feb[Close] – Jan[Close]

    Becasue I try this code, the number seems not right…

  4. Dear Mr. Rajandran,

    hmm…. ver_5.5 has this function in “report chart”.
    But I only have ver_5.2 >”<

  5. Dear Sir can u have afl which give price change in point, total cummulative price + / – , percentage change, total cummulative % change + /- and , total cummulative open interest + /-

    please reply sir,

Leave a Reply

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