[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] How to refer to a daily ATR(10)?



PureBytes Links

Trading Reference Links

First, you cannot change a TimeFrame to a smaller value than you started
with. Well, you can, but you will get the same values until the next bar
begins. In your case, you created a Daily ATR, all your 15 minutes ATR
values will be the same until the last bar of the day.

 

To view in other TimeFrames use Xx_min = TimeFrameExpand(Xx,inMinute); or
whatever time frame you want. See Help for more info.

 

--

Terry

  _____  

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Clement Chin
Sent: Saturday, June 17, 2006 4:01 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] How to refer to a daily ATR(10)?

 

How to create a variable ATR(10) under daily chart and refer it under other
time frames? 

 

I use the following codes:

 

TimeFrameSet(inDaily); 

                        Xx=atr(10);

TimeFrameRestore();

            \\          Display the xx value.

 

I use it under 15m time frame. It seems that the value is changing with
every bar I move.

 

Please show me the right way.

 

Clement