Click here to Login





                                                   Custom Metrics

  0

0
Dave W.
2013-02-18 00:01:01


Hello. I'm trying to add a few custom metrics to the backtest results. The first one is "Expectancy"
and I think it is working properly. The formula is:

Fitness = ( (PercentOfWinners * AverageProfit) - ( ( 1 - PercentOfWinners ) * AverageLoss) ) ) / AverageLoss;

The second metric is SQN. I don't know how to write the formula in the custom metric area. The
psuedo code is:

SQN = (Expectancy / Standard Deviation of Trade Results in $) * (Sqr Root of # of Trades)

Can you tell me how to add SQN as a custom metric, please?

Thank you.




Dave W.
2013-02-19 01:50:48

  0

From QuantShare support:
2- The "T score" item was shared by QuantShare member.
Please read the item description for more information:

"After running your simulation, go to "Report for trading system" and select "Trades". First entry on the last column will show the T-score of your trading system. "

---------------------------------------

On the T-score (/SQN - same thing), I wanted the score shown on the report, though, not on the trade list (looks out of place on the trade list - I'd like it with my other metrics). Can you show me / give me the code to do that using the custom metrics?

Thanks for your help!




QuantShare
2013-02-20 11:06:37

  0

In custom metrics, you can only calculate basic metrics. For advanced ones, you have to use the money management script.
For example, "SQN" cannot be calculated in custom metrics because the "Standard Deviation of Trade Results in $" metric is not available and it must be calculated from scratch.



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
System Metrics v2.0
Lagged Data From a Custom Database
Upside-Downside and Custom Standard Deviation
Stock/ETF Rotational System Metrics
Advanced Quotes and Custom Databases Function

How-to Lessons
How to add custom position-based metrics to your trading system
How to use a custom drawing tool
How to create a custom trendline
How to create a custom trading indicator
How to display Forex economic calendar data in a chart

Related Forum Threads
Portfolio custom backtest metrics
Request: Example of Custom Metrics addition into Rules Analyzer
Custom Fitness function in Ranking System Manager
Access all the elements of a custom db during screening
Can a Money Management script access a custom function?

Blog Posts
Create custom metrics for the statistical data analysis tool
How to Create Custom Metrics for Your Trading Positions
Trading System Analysis: Backtesting report and custom measures
How to Create a Custom Real-Time Table using QS Trading Software
Custom Shortcuts - Move a Chart to Display the Last Quotes/Data









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.