# Profit Table – Amibroker AFL Code

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)

## Dynamic Color Coding in Amibroker Profit Tables: A Visually…

Profit tables are a valuable tool for traders and investors to analyze the trading strategy performance of their investments over time. However, the traditional...

## Send Smart Options Execution Orders from Futures or Spot…

This tutorial provides instructions on how to utilize simple buy and sell trading signals in Spot/Future charts to place option orders (including ATM, ITM,...

## 7 Replies to “Profit Table – Amibroker AFL Code”

1. Market Hypothesis says:

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. Which Version you are using i tried with my 5.2 version. It worked fine

3. men says:

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,

4. eagle says:

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…

1. @eagle

Now Amibroker has this custom function inbuilt in the bactesting.

5. eagle says:

Dear Mr. Rajandran,

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

6. JITENDRA says:

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 + /-