Want YTD % Return - ThinkOrSwim | futures io social day trading
futures io futures trading


Want YTD % Return
Updated: Views / Replies:2,193 / 2
Created: by ScatmanCrothers Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Want YTD % Return

  #1 (permalink)
Trading Apprentice
Atlanta Georgia
 
Futures Experience: Master
Platform: Etrade
Favorite Futures: Stocks
 
Posts: 2 since Jun 2014
Thanks: 0 given, 2 received

Want YTD % Return

Hello, I am trying to make a custom study to display the Year-To-Date return as a column on the Marketwatch Tab
of TOS, my script looks like this with aggregation set to "D" (Daily):

plot ytdreturn = (close()-close[167])/(close[167]);

By my understanding that should give the close for today minus the close from 167 days ago, divided by the close from 167 days ago or the Year to Date % return in other words.

However, this gives me a 161% return for priceline (obviously incorrect, even if you use the 52 wk low it is impossible)
And a 133% return for the SOX (52 week low is 442, again impossible).

Can anyone please help???

Reply With Quote
The following user says Thank You to ScatmanCrothers for this post:
 
  #2 (permalink)
Trading Apprentice
Atlanta Georgia
 
Futures Experience: Master
Platform: Etrade
Favorite Futures: Stocks
 
Posts: 2 since Jun 2014
Thanks: 0 given, 2 received

To answer my own question partially:

plot ytdreturn =100* (close(period = AggregationPeriod.DAY)-close(period = AggregationPeriod.DAY)[251])/(close(period = AggregationPeriod.DAY)[251]);

That will give approximately 1 year of returns (251 business/trading days).

Similarly:

plot ytdreturn =100* (close(period = AggregationPeriod.DAY)-close(period = AggregationPeriod.DAY)[115])/(close(period = AggregationPeriod.DAY)[115]);

Since there have been 115 trading days since the beginning of this year, the above formula gives YTD % Return. I would like to figure out a way to replace the 115 with a variable since tomorrow it will be 116, day after 117 and I don't want to have to change it every day.....

Reply With Quote
The following user says Thank You to ScatmanCrothers for this post:
 
  #3 (permalink)
Trading Apprentice
Singapore
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkorSwim
Favorite Futures: Futures
 
Posts: 11 since Feb 2014
Thanks: 0 given, 3 received


Thanks! I was also trying to do something similar some time back.

Reply With Quote

Reply



futures io > > > > Want YTD % Return

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is a reasonable return SammyD Psychology and Money Management 117 January 3rd, 2016 01:13 PM
Should you buy the best or worst YTD stocks? Big Mike Stocks and ETFs Trading 1 November 14th, 2013 03:37 PM
My return to NinjaTrader Big Mike Elite Automated NinjaTrader Trading 227 May 16th, 2013 04:23 AM
US tax return questions michaelbr Off-Topic 4 September 11th, 2012 11:43 PM
ES Tick Data for MultiCharts? 2009-YTD benharrell Traders Hideout 4 December 19th, 2010 11:35 PM


All times are GMT -4. The time now is 02:36 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-14 in 0.20 seconds with 19 queries on phoenix via your IP 54.221.76.68