Click here to Login





                                                   Continues Buy / Sell

  0

0
Juliettpapa
2013-10-26 17:48:09


How can i tell the simulator to continuing to buy/sell?

When a criterion is met (weekly) than QS shall buy one contract.
If the criterion is met next week again, it should buy the next contract. It has to buy if the criterion is met until the sell rule is triggered.
How can i write this "scale in" in QS?
JP



QuantShare
2013-10-28 11:48:51

  0

You can do that in the money management script by catching "OnEndPeriod" event, checking the criterion then scaling-in (buying an additional contract) each time that criterion is met.



QuantShare
2013-10-28 11:49:52

  0

You can scale-in by purchasing more shares of an existing position:
Orders.AddLongPosition



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
Buy Sell Simulation Indicator
buy sell
LSS Pivotal Buy and Sell Numbers - Trend Reaction
Buy High Sell Higher
Buy low, Sell High

How-to Lessons
How to generate buy/sell signals from a trading system
How to perform a basic quantitative analysis using the S&P 500
How to create a strategy-based portfolio
How to optimize an indicator in your trading system
How to download and use U.S. stocks earnings data

Related Forum Threads
Buy and Sell rules combination in Optimizer.
Regarding Ploting Buy Sell Signals
Plot Up/Down Arrows corresponding to buy and sell signals
Setsimtiming -- Buy signal day open and sell signal day close
Buy Sell Signals Chart Layout

Blog Posts
Trading System: Moving average crossover and few others buy and s...
How to get buy and sell orders for a portfolio based on a trading...
How to create buy and sell trading rules based on News Data
Trading System: Buy Stocks based on their Sharpe Ratio Rank
Trading System: Buy stocks with the highest Sharpe ratio









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.