Click here to Login





                                                   # of trades

  0

0
umair
2013-03-18 06:51:12


Hi, i'm backtesting 900 individual securities using the Symlist indicator and money management script QS team has created. It works great but i'm curious to know if there is a way to display how many trades each symbol was involved in and display the total # of trades next to the symbol name. Rather than having to run the report on each symbol and then going to ''statistics.''

Sort of like a column next to, ie: A. return, drawdown, sharpe etc

thank you



QuantShare
2013-03-18 10:50:49

  0

Best Answer
You must first add a report metric in the "OnStartSimulation" event of the money management script:

Functions.AddReportMetric("Trades", 0);

Then calculate the number of trades in the "OnEndSimulation" event:

double trades = Portfolio.GetAllPositions().Length;
Variables.SetVariable("Trades", trades);




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
Strategy Indicator - Percent winning trades for a trading rule
Adaptive Trading System - Percent Winning Trades for the Last N-D...
Put-Call Ratio Index using Market Makers Trades
Adaptive Trading Indicator based on the Return of Past Trades
VIX Contango-Backwardation Data

How-to Lessons
How to add trades from one portfolio to another one
How to import trades into a portfolio
How to calculate the average of a time series using the money man...
How to add a metric in the trading system simulation report
How to quickly add several positions to your portfolio

Related Forum Threads
Graph trades
Adjust the Entry and exit prices of trades in AMM script
Showing Skipped Trades
Add Skipped Trades Due to Margin Constraints to Trade Log
Long vs Short trades in a Long-Short system

Blog Posts
Historical Market Data
How to Optimize a Trading System with Thousands of Billions of Co...
Export Trading Orders from a Portfolio to a File
Backtesting a Strategy Based on Bond and Stock Index ETFs
Different Types of Trading Indicators: Trend, Momentum, Volatilit...









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.