NexusFi: Find Your Edge


Home Menu

 





Daily ATR on Intraday Data


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one ausstone with 2 posts (0 thanks)
    2. looks_two SPMC with 1 posts (1 thanks)
    3. looks_3 sptrader with 1 posts (0 thanks)
    4. looks_4 wtrader with 1 posts (0 thanks)
    1. trending_up 6,141 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 ausstone 
Miami, FL / USA
 
Experience: Intermediate
Platform: MultiCharts
Trading: Futures, Forex
Posts: 14 since Feb 2013
Thanks Given: 0
Thanks Received: 2

I use the ATR on the daily bars quote a bit, but am working with a intraday strategy and would like to get the ATR that is the same as the day chart with out actually have to plot the daily bars because this slows MC down a lot. can anyone suggest any pointers in the best way to try to calculate the daily ATR on intraday bars with out doing ATR = Close of data2;


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
2 thanks
30 Sessions
1 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
  #2 (permalink)
 ausstone 
Miami, FL / USA
 
Experience: Intermediate
Platform: MultiCharts
Trading: Futures, Forex
Posts: 14 since Feb 2013
Thanks Given: 0
Thanks Received: 2

actually i found the function : RS_TrueExtremes which says suppose to do the same thing

RS_TrueExtremes (Function)

but when i load up the example and compare a 9 day ATR on intraday data vs a 9 day ATR on normal data they are very different...


Started this thread Reply With Quote
  #3 (permalink)
wtrader
Turin Italy
 
Posts: 6 since Dec 2011
Thanks Given: 1
Thanks Received: 1


you can read this:
Tutorial 34 - Using ADE (All Data Everywhere) to transfer data between charts
also tutorial n.32.

i think should be helpful for you.
bye


Reply With Quote
  #4 (permalink)
 
sptrader's Avatar
 sptrader 
Colorado
 
Experience: Advanced
Platform: MultiCharts
Broker: IB & Iqfeed
Trading: ES , CL
Posts: 535 since Apr 2010
Thanks Given: 1,097
Thanks Received: 702

I think Highd(0) - Lowd(0) will give the range for the current day, intra-day data.. (prev close would be Closed(1);
If you want ave true range you would have to allow for the gaps from the prev close, shouldn't be too hard to do..


Reply With Quote
  #5 (permalink)
 SPMC 
GER
 
Experience: Advanced
Platform: MC
Trading: ES
Posts: 144 since May 2011
Thanks Given: 11
Thanks Received: 213

I posted this code for daily atr for intraday charts somewhere on the Multicharts forum some years ago:
 
Code
Input: 
Modus 	  ( 1 ),
//Modus = 1 : Calculate the ATR including the current date, the ATR drops on the start of the trading
//day. Same calculation as on a daily chart using the standard
//Average True Range function with "Update on every tick" checked
//Modus = 2 : Calculate the ATR over the last ATRLength days excluding today. 
//Same calculation as on a daily chart using the standard
//Average True Range function with "Update on every tick" unchecked
ATRLength( 30 ); 

Variables: 
x		(0), 
AvDailyAtr 	(0),  
Initialized	(0); 

Array : MyATR [50] (0); //Limit to 50 as OHLCPeriodsAgo used by TrueRangeD /HighD... is
//limited to arr0[ 4, 50 ]( -1 ) 

once begin
	if ATRLength >49 then raiseruntimeerror (" ATRLength needs to be <50 !!!!");
     end;	
If date <> date[1] then 
begin 
	Initialized = Initialized + 1; 
		If Bartype < 2 and initialized > ATRLength then 
			begin 
				for x = 1 to ATRLength-1 
					begin 
						MyATR [x] = TrueRangeD ( x);
					end; 
			end;
end;

if Modus = (1) then MyATR [0]  = TrueRangeD ( 0 );
if Modus = (2) then MyATR [0]  = TrueRangeD ( ATRLength );

AvDailyAtr = array_sum ( MyATR ,0,ATRLength-1 )/ATRLength;

If initialized > ATRLength then 
Plot1(AvDailyAtr ,"Daily ATR");


Reply With Quote
Thanked by:




Last Updated on December 9, 2013


© 2026 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 - Downloads - Top
no new posts