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,966 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #1 (permalink)
 
GoldenRatio's Avatar
 GoldenRatio 
Philadelphia, PA
 
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
Posts: 211 since Aug 2012
Thanks Given: 5,190
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?
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
GFIs1 1 DAX trade per day journal
22 thanks
NexusFi site changelog and issues/problem reporting
22 thanks
The Program
20 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 - Downloads - Top
no new posts