How to add standard deviation of profit and losses as a custom backtest metric

Would someone be kind enough to provide a detailed explanation as to how in the world I may add the standard deviation of profit and losses of a system as a custom backtest metric?

I have spent days (maybe weeks) reviewing pages on this forum including:

http://www.amibroker.com/guide/a_custommetrics.html

http://www.amibroker.com/kb/2014/11/20/how-to-show-indicator-values-in-backtest-trade-list/

http://www.amibroker.com/kb/category/afl/custom-backtest/

and no luck.

Please help.

Are you able to create a high-level CBT and output ANY custom metrics? It would be helpful if you posted your best attempt at coding this yourself so that others can correct your mistakes.

How about using forum search?

3 Likes

Words can not express how I feel right now.

Thank you very much kind Sir!