NexusFi: Find Your Edge


Home Menu

 





Proper way to determine action price on historical dividend/split adjusted data?


Discussion in Traders Hideout

Updated
    1. trending_up 1,994 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
GoldenRatio's Avatar
 GoldenRatio 
Philadelphia, PA
 
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
Posts: 211 since Aug 2012
Thanks Given: 5,192
Thanks Received: 296

I am conducting a breakout backtest and have a question on determining a proper action price. The split adjusted data I am using has precision to 5 decimal places. So, theoretically the buy price has precision of 5 decimal places.

Now my question is regarding the calculation of profit or loss %'s. For example, if the buy price is 0.46429 and the sell price is 5% below the buy price, then the sell price is 0.46429 * 0.95 = 0.4410755.
My question is, do I round the stop loss price to the precision of the input data or keep full precision throughout the calculation? ***Yes, I recognize we cannot buy at this precision and hence why I have this question.***

Performing the the loss % calculation with full precision is: (0.4410755/.46429) - 1 = 0.05.

Performing the the loss % calculation by truncating the sell price to match the input data precision is: (0.44108-.46429)/.46429 = -0.049990307781774.

So, should the loss be calculated as 0.05 or -0.04999? I want to ensure I am applying the proper method (close enough is not good enough for me, I want to do this right.)

Thank you in advance!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quantum physics & Trading dynamics
The Elite Circle
What You Know vs How much you know about it
Traders Hideout
ichimoku Ninja 8
NinjaTrader
MC PL editor upgrade
MultiCharts
Help re translation of ninjascript to EL
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
HumbleTraders next chapter
46 thanks
Tao te Trade: way of the WLD
45 thanks
What is Markets Chat (markets.chat) real-time trading ro …
41 thanks
ApexTraderFunding.com experience and review
30 thanks
1 Minute Man
19 thanks




Last Updated on February 7, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Sitemap - Downloads - Top
no new posts