Click here to Login





                                                   Add Cash

  0

0
Rodney
2018-03-28 02:13:56


Hello,
Is there a way to add cash in a simulation? For example, if I'm backtesting over a period of time and I want to add cash every month to the portfolio to see the results.
Can I do that with a money management script? If so could someone give me an example of how to do that?

Thanks,



QuantShare
2018-03-30 04:47:37

  0

Best Answer
Yes, you need to do that with the money management script.

In the "OnEndPeriod" event, type:

Functions.AddCash(1000);



Rodney
2018-04-12 15:35:37

  0

Thank you very much.


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
Invest Available Cash In a Security
Fixed Interest Cash
Percentile Rank of PEG, Price/Free Cash Flow and Price/Sales
PEG and Price to Free Cash Flow above Market Averages
Interest Rates Historical Data for Australia - Interbank and Targ...

How-to Lessons
How to quickly add a ticker symbol
How to add custom position-based metrics to your trading system
How to quickly add several positions to your portfolio
How to add a metric in the trading system simulation report
How to add future bars to plan for market scenarios

Related Forum Threads
add short cut for layouts
add symbols to a market
Add Money Management Settings to Reports
Add new symbols for download
how to add column in screener

Blog Posts
Trading Orders - Part 1
How to Backtest Each Stock or Asset Individually
Fundamental Stock Analysis: Rank stocks based on a valuation rati...
Backtesting All Candlestick Patterns in 10 Minutes
Basic trading system implemented using the money management tool









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.