Click here to Login





                                                   More documentation on SetSimSettings

  0

0
Jack Weinberg
2013-11-12 21:57:53


Is there somewhere which has the complete documentation on all possible values of the arguments?

For example, I am looking for an argument which translates into "dollar value of shares purchased".



Jack Weinberg
2013-11-13 06:54:25

  0

This is what I have been able to find so far:
SetSimSetting(_NbPositions, 10); // Max number of positions to hold
SetSimSetting(_InitialEquity, 150000); // Starting capital
SetSimSetting(_ActivateStopImmediatly, 1); // Uses the stop price as the trade exit price
SetSimSetting(_DisableTradeIfFewVolume, 0);
SetSimSetting(_DisableTradeIfFewVolumeRatio, 10);
SetSimSetting(_ExitWhenReverseEntrySignal, 0); // Exit the current position if signal in the opposite direction is triggered
SetSimSetting(_MarginFactor, 2);
SetSimSetting(_MinPositionValue, 10000);
SetSimSetting(_MinShares, 10);
SetSimSetting(_RiskFreeRate, 2);
SetSimSetting(_Slippage, 0);
SetSimTiming(_Buy, _Open, 0); // Type, Price (_Close, _Open, _Limit, _Stop, _StopLimit), Decalage -1 = today 0 = tomorrow ...
SetSimTiming(_Sell, _Close, 0);
SetSimTiming(_Short, _Open, 0);
SetSimTiming(_Cover, _Open, 0);



QuantShare
2013-11-13 19:18:53

  0

To get all available values for an argument, use the CONTROL+SPACE shortcut.

There is no "dollar value of shares purchased" setting. To enter a fixed amount for each position you will have to use the money management tool.

We already have similar script in the sharing server:
http://www.quantshare.com/item-493-position-sizing-fixed-dollar-amount






Position Sizing: Fixed Dollar Amount (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads Notes Report an item

Seeker
2013-11-14 18:47:22

  0

Actually, this CONTROL+SPACE short-cut never works for me!


QuantShare
2013-11-14 18:52:11

  0

Type exactly:

SetSimTiming(

Then use CONTROL+SPACE.



Seeker
2013-11-15 17:31:26

  0

while typing that itself the options are shown without the need for CONTROL+SPACE


Jim Harrison
2013-11-17 04:21:58

  0

Sounds like you have multiple monitors, and the dialogue you are seeking is buried on another screen... Have experienced that myself. Try putting Qshare on your primary monitor and see if that helps.


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
Historical Stock Quotes Data for more than 50 Exchanges
Daily Stock Quotes for more than 50 Stock Exchanges
Garman-Klass Volatility Estimator
Global Market Rotation Strategy V1.4
Industry Relative Strength

How-to Lessons
How to debug a downloader
How to drag & drop a stock to a static watchlist
How to use the Fibonacci retracement drawing tool
How to create a hatched area in a chart
How to add future bars to plan for market scenarios

Related Forum Threads
adding more pane in chart
Money Management Script variables and more
Streamline Toolbars / Interface for More Open Space
Backtest, if number of buy is more than open positions, how QS se...
Documentation on SetSimSetting

Blog Posts
More about QuantShare Programming Language
Download quotes, news, sentiment, fundamental... data using Quant...
Volatility and trading systems
Backtesting Process
How to simulate options strategies









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.