duplicate ATR from 30 min chart to 15 min chart - Platforms and Indicators | futures.io
futures.io futures trading


duplicate ATR from 30 min chart to 15 min chart
Started: by shzhning Views / Replies:254 / 2
Last Reply: Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

duplicate ATR from 30 min chart to 15 min chart

  #1 (permalink)
Elite Member
Nanjing, NJ
 
Futures Experience: Intermediate
Platform: CQG
Broker/Data: Optimus CQG
Favorite Futures: Flute
 
Posts: 91 since Jun 2010
Thanks: 25 given, 62 received

duplicate ATR from 30 min chart to 15 min chart

Hi, this is a generic question about ATR on thinkorswim, but the idea should be applicable to any platform.

The idea is duplicate my ATR value from a 30 min chart to 15 min chart.

The script for a 45 period ATR on 30 min chart is : Average(TrueRange(high, close, low), 45)

On my 15 min chart, I changed 45 to 90, and everything else is the same: Average(TrueRange(high, close, low), 90);

Since 15 min chart has double the bar count of 30 min chart, I thought the revised script would give me the exact reading from the 30 min chart, but it does not.

Anyone has any clue what's not right?

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Nanjing, NJ
 
Futures Experience: Intermediate
Platform: CQG
Broker/Data: Optimus CQG
Favorite Futures: Flute
 
Posts: 91 since Jun 2010
Thanks: 25 given, 62 received


I managed to put together something like this, in case anyone need it. And it works

def agg1 = AggregationPeriod.FIFTEEN_MIN;
def agg2 = AggregationPeriod.THIRTY_MIN;

def ATR1 = Average(TrueRange(high(period = agg1), close(period = agg1), low(period = agg1)), 45);
def ATR2 = Average(TrueRange(high(period = agg2), close(period = agg2), low(period = agg2)), 45);

Little hidden gem that TOS allows a secondary aggregation period in their script language

Reply With Quote

Reply



futures.io > > > duplicate ATR from 30 min chart to 15 min chart

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

Bookmap New Indicator Panel, Cumulative Delta, Order Flow demo

Jan 17
 

An Afternoon with FIO member Massive l

Elite only

Leo Murphy: Making sense of Technical Analysis and Random Walk

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Journal (CL crude, 5 MIN chart) bcomas Elite Trading Journals 52 March 5th, 2016 04:46 AM
15 min and 60 min MA on 5 min chart SanSan ThinkOrSwim 2 January 20th, 2016 02:13 PM
Creating a 20 period EMA of a 60 min chart in a 5 min chart. CapeDR NinjaTrader 7 May 23rd, 2014 04:37 AM
7 chart types compared to 1 min chart trdr Traders Hideout 1 August 8th, 2011 11:50 PM
how can a lay a 5 min prc chart on 1 min chart for ninjatrader 7 optimus prime NinjaTrader 2 May 18th, 2011 07:14 PM


All times are GMT -4. The time now is 04:59 AM.

no new posts
Page generated 2017-01-17 in 0.08 seconds with 19 queries on phoenix via your IP 54.147.247.194