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:274 / 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/TOS
Broker/Data: Optimus/CQG
Favorite Futures: CL
 
Posts: 99 since Jun 2010
Thanks: 29 given, 67 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/TOS
Broker/Data: Optimus/CQG
Favorite Futures: CL
 
Posts: 99 since Jun 2010
Thanks: 29 given, 67 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)
 

Mastering Trading Pysychology w/Brett Steenbarger & Trading Technologies

Elite only

PTMC Protrader Platform First Look w/Sergey Sokolov

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Journal (CL crude, 5 MIN chart) bcomas Elite Trading Journals 52 March 5th, 2016 03:46 AM
15 min and 60 min MA on 5 min chart SanSan ThinkOrSwim 2 January 20th, 2016 01:13 PM
Creating a 20 period EMA of a 60 min chart in a 5 min chart. CapeDR NinjaTrader 7 May 23rd, 2014 03:37 AM
7 chart types compared to 1 min chart trdr Traders Hideout 1 August 8th, 2011 10: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 06:14 PM


All times are GMT -4. The time now is 02:32 PM.

no new posts
Page generated 2017-03-23 in 0.07 seconds with 19 queries on phoenix via your IP 54.197.130.93