Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Profit Table – Amibroker AFL Code

14 sec read


 
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 Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

What is QuantZilla?

Quantzilla is 75+ hours of code mentoring program designed for noncoders who want to learn the coding program right from designing indicators, scanners, trading...
Rajandran R
58 sec read

Things to Consider While Building a Bracket Order Execution…

Building a Bracket Order Strategy is the most demanded request we got from most of the algomojo traders. This article explains the list of...
Rajandran R
12 min read

PlaceOrder – Multi Broker Exectuion Code Snippets for Amibroker

This tutorial explains how to build a button trading right from scratch and with a click of a button how you can send orders...
Rajandran R
7 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 to JITENDRA Cancel reply

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