Click here to Login





                                                   How is buy/sell price calculated when running a backtest?

  0

0
EdL
2013-02-10 19:22:02


Hi,

I have imported price data in the following format:

Date Time ; Open ; High ; Low ; Close ; Volume

20090102 003000;1.386200;1.386300;1.385900;1.386000;0
20090102 003100;1.386100;1.386200;1.385400;1.385400;0
20090102 003200;1.385500;1.386300;1.385500;1.386300;0

When I run a simulation using this historical data I am getting a Sell signal at time 00:31 @ 1.3858

How has that price been calculated?
I thought it would use either the close of the 00:31 bar otherwise maybe the open or close of the 00:32 bar, but this is not the case.

Thanks

Ed



QuantShare
2013-02-11 11:43:39

  0

Best Answer
Check the imported data using "Data -> Edit databases".

There are several reasons why the sell price could be different that then real price. Maybe you are using a money management script, a limit order or slippage setting.

You can send us your trading system to support [at] quantshare [dot] com, so we can check it.




EdL
2013-02-11 12:16:09

  0

Thanks for the suggestions.
I checked the data in "Edit databases" and it was the same as imported. I am not using a money management script or limit orders and my slippage is set to 0.
However, I had a Stop of 0.8% and under the Trading System's "Settings -> Capital", "Activate Stop Orders Immediately" was checked and that is what was causing it to exit at that exact price.

Many thanks for your swift response



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
S&P 500 - Price to earnings ratio
Close Price Above Cursor
Analyst Rating (Yahoo Historical Buy/Sell Recommendations)
Current Drawdown of any Price Series or Indicator
Short Term Volume and Price Oscillator

How-to Lessons
How to change volume bar colors when the price closes down
How to download new quotes when selecting a chart
How to detect whether price movements are predictable or not
How to generate buy/sell signals from a trading system
How to speed up watchlist and screener plug-ins when working with...

Related Forum Threads
How do you retrieve the entry and exit price for a position?
How do I refer to the close price of another symbol in a formula?
How do I find the close price for an entry matching a custom DB
how do you check if the price data is up to date?
Can one add a vector of price and trade signals and get a backtes...

Blog Posts
How to make sure your Historical Price Data is Split Adjusted
How to filter quotes data from high and low price spikes
How to Create an Automated Trading System in QuantShare
Running QuantShare on Amazon's EC2 Cloud & Automate Strategies Si...
Learn How to Create Your Own Technical Analysis Indicators









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.