Click here to Login





                                                   Set the buy or sell price

  0

0
alienator
2010-06-09 11:38:53


In the simulator, how do I set the price that I want the position to exit at? For example if a stop gets hit, how do I specify the price that the stock was exited at?


QuantShare
2010-06-09 13:56:55

  0

Update the sell or the cover order type.
Example:
Sell using limit order at the price of <rule>

However, if a stock is exited after it hit a stop, the simulator uses a market-on-open order. We will change the logic so it uses the settings defined in the "Sell" or "Cover" order type.



alienator
2010-06-10 10:47:46

  0

Is there a way to set a price for every rule? Or can you just set one price that all the rules have to use?


QuantShare
2010-06-11 11:28:04

  0

Best Answer
What you can do is add a condition in the limit order price.
Example:
Sell using limit order at the price of: iff( rule , limit price 1, limit price 2)



alienator
2010-06-12 12:41:08

  0

That should work. Thank you!!!!


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

How-to Lessons
How to change volume bar colors when the price closes down
How to set order type of a trading system programmatically
How to perform a basic quantitative analysis using the S&P 500
How to debug a trading system using the money management tool
How to optimize the number of positions in a trading system

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

Blog Posts
Buy the best/top rated stocks or how to create powerful rank base...
How to get buy and sell orders for a portfolio based on a trading...
Trading System: Moving average crossover and few others buy and s...
Trading System: Buy stocks with the highest Sharpe ratio
How to create buy and sell trading rules based on News 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.