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 sptrader with 1 posts (0 thanks)
    3. looks_3 wtrader with 1 posts (0 thanks)
    4. looks_4 SPMC with 1 posts (1 thanks)
    1. trending_up 5,316 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Daily ATR on Intraday Data

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
Quantum physics & Trading dynamics
The Elite Circle
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
32 thanks
Just another trading journal: PA, Wyckoff & Trends
23 thanks
Trading with Intuition
17 thanks
Self sabotage reframed
11 thanks
ApexTraderFunding.com experience and review
10 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: 701

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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts