help code multiple Time Frame indicator - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


help code multiple Time Frame indicator
Updated: Views / Replies:21,396 / 25
Created: by ttmarok Attachments:1

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 donít 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
 1  
 
Thread Tools Search this Thread
 

help code multiple Time Frame indicator

  #1 (permalink)
Trading Apprentice
New York U.S
 
Futures Experience: Beginner
Platform: tradestation
Favorite Futures: usd
 
Posts: 4 since Jul 2011
Thanks: 3 given, 0 received

help code multiple Time Frame indicator

Please help code Multiple Time Frame for EMA. I want the ema as follow;

1. My chart is 5 minutes time frame
2. I want 30 minute ema and 60 minute ema on the 5 minute charts.

Thanks

Reply With Quote
 
  #2 (permalink)
Elite Member
Concord, NH USA
 
Futures Experience: Intermediate
Platform: Ninja trader
Broker/Data: AMP/CQG
Favorite Futures: ES
 
jdella's Avatar
 
Posts: 182 since Jun 2009
Thanks: 134 given, 110 received


ttmarok View Post
Please help code Multiple Time Frame for EMA. I want the ema as follow;

1. My chart is 5 minutes time frame
2. I want 30 minute ema and 60 minute ema on the 5 minute charts.

Thanks

I believe this is what you are looking for:
https://futures.io/free_downloads/ninjatrader-7/indicators/939-download.html

Reply With Quote
The following user says Thank You to jdella for this post:
 
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,351 given, 83,221 received



jdella View Post

I think he is looking for ThinkOrSwim only.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #4 (permalink)
Trading Apprentice
New York U.S
 
Futures Experience: Beginner
Platform: tradestation
Favorite Futures: usd
 
Posts: 4 since Jul 2011
Thanks: 3 given, 0 received

TOS.. Multi timeframe

Please help.

1. Can thinkorSwim program multi time frame ?

I search the web and can't seem to find any source or information on how to program multi time frame in TOS.

Thanks

Reply With Quote
 
  #5 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,351 given, 83,221 received


ttmarok View Post
Please help.

1. Can thinkorSwim program multi time frame ?

I search the web and can't seem to find any source or information on how to program multi time frame in TOS.

Thanks

Have you asked ThinkOrSwim directly if it is even possible?

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #6 (permalink)
Elite Member
Wilson, NC
 
Futures Experience: Intermediate
Platform: thinkorswim
Favorite Futures: NQ
 
zentrade's Avatar
 
Posts: 18 since Dec 2010
Thanks: 1 given, 5 received

Is this what you are looking for? I just took the stock Exponential moving avg script and added input for a new time period. I think it would be better if you could gather the OHLC info using the rec statement, but this works fine.

BTW, if anyone knows how to do this using the "rec" statement please let me know.

Attached Files
Register to download File Type: ts MTF_MovAvgExponentialSTUDY.ts (325 Bytes, 357 views)
Reply With Quote
The following 2 users say Thank You to zentrade for this post:
 
  #7 (permalink)
Elite Member
Glyndon, Maryland, USA
 
Futures Experience: Advanced
Platform: TOS
Favorite Futures: options
 
Posts: 24 since Sep 2010
Thanks: 6 given, 47 received

I know how but I am not sure I understand what you want to do exactly. If you just want to use OHLC as an input for price rather than close, then that wouldn't require a rec variable to do so. Help me understand exactly what you mean and I'll code it for you in a matter of seconds

Reply With Quote
 
  #8 (permalink)
Onn
Vancouver, Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraCharts, thinkorswim
Favorite Futures: Stocks
 
Posts: 10 since Sep 2011
Thanks: 0 given, 2 received

referencing aggregated data in ToS

it is possible. look under the section called
Referencing Secondary Aggregation

in the ToS thinkscript manual

here is an excerpt:

In order to access data of a different aggregation period in your code, specify the period parameter using the corresponding Aggregation Period constant. You can also use a pre-defined string value for this purpose: 1 min, 2 min, 3 min, 4 min, 5 min, 10 min, 15 min, 20 min, 30 min, 1 hour, 2 hours, 4 hours, Day, 2 Days, 3 Days, 4 Days, Week, Month, Opt Exp, and <current period>.

notice that the time period you want to reference must be greater than the time period on your chart. e.g., you can't reference 5 min data on a 30 min chart but i don't think that that is a problem in the case described here

your code would look something like this:

def a = Average(close(period = AggregationPeriod.FIVE_MIN));i would have provided the link to the documentation but i am new here and can't post links (yet)

sorry for the inconvenience.

Onn

Reply With Quote
 
  #9 (permalink)
Elite Member
Greensboro NC
 
Futures Experience: None
Platform: TOS/ NT Dorman
Favorite Futures: ES TF CL
 
Rad4633's Avatar
 
Posts: 1,352 since Sep 2011
Thanks: 2,651 given, 886 received


ttmarok View Post
Please help code Multiple Time Frame for EMA. I want the ema as follow;

1. My chart is 5 minutes time frame
2. I want 30 minute ema and 60 minute ema on the 5 minute charts.

Thanks

Thinkscripter.com

Reply With Quote
 
  #10 (permalink)
Elite Member
Wilson, NC
 
Futures Experience: Intermediate
Platform: thinkorswim
Favorite Futures: NQ
 
zentrade's Avatar
 
Posts: 18 since Dec 2010
Thanks: 1 given, 5 received



optntdr13 View Post
I know how but I am not sure I understand what you want to do exactly. If you just want to use OHLC as an input for price rather than close, then that wouldn't require a rec variable to do so. Help me understand exactly what you mean and I'll code it for you in a matter of seconds

I would like to (using a rec variable) from a 1min chart, gather the OHLC that would make a 30min bar. For example. if the time is 10:24, (1) get the CLOSE of the 10:24 1min bar, this is the close of the 30min bar. (2) from time 10:00 to 10:24 find the HIGH and LOW. (3) get the OPEN from the 10:00 1 min bar. This would be the same as if you had a 30min chart open in a seperate pane. Then you can use the rec variable like... anchorClose[1] or anchorClose[2] or anchorHigh[1] or anchorLow[3] etc to calculate a higher time frame anchor indicator that you can use on a smaller chart.

I hope that wasn't confusing. Basically I want to see a 30min or 15min stochastics on a 1 or 5 min chart but be able to change the period to 10, 15, 30, 60 etc (a multitimeframe stochastics indicator)

Thanks


Last edited by zentrade; January 14th, 2012 at 09:19 PM.
Reply With Quote

Reply



futures io > > > > > help code multiple Time Frame indicator

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
Multiple Time Frame Bollinger Bands Saroj The Elite Circle 3 April 28th, 2013 03:34 PM
Best time frame for an instrument spikoloco The Elite Circle 9 September 25th, 2011 03:06 PM
Higher Time Frame Inside-Outside Bar Indicator ??? philipp NinjaTrader 2 September 5th, 2011 04:33 PM
NT7 different time frame indicator Zsolt NinjaTrader 2 April 14th, 2010 12:40 PM


All times are GMT -4. The time now is 01:08 PM.

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-13 in 0.15 seconds with 20 queries on phoenix via your IP 54.82.79.109