Re: [amibroker] TimeFrameSet problem

 

>>>
What I want to achieve is to find the day with lowest volume
<<<

VolLowDaily = LLV(Volume * C, 20);
This will find the lowest VOLUME*C (amount of money), but not the DATE, as you wish.  Maybe you need to use VALUEWHEN to find the date?

So add to your code something like:
ValueWhen(Volume * C =VolLowDaily , datetime(), )




On Sat, Apr 16, 2016 at 8:29 PM, Marcin Jagodziński marcin.jagodzinski@gmail.com [amibroker] <amibroker@yahoogroups.com> wrote:
 

Yes, I've tried it, the result is the same.

On Sat, Apr 16, 2016 at 7:26 PM, 'B. Pitatzidis' bobptz@gmail.com [amibroker] <amibroker@yahoogroups.com> wrote:
 

Hi

I have never used "AddColumn" but let me give it a shot.  Have you tried the TimeFrameExpand ?

TimeFrameSet(inDaily);
VolLowDaily = LLV(Volume * C, 20);
TimeFrameRestore(); 
VolLowDaily = TimeFrameExpand(VolLowDaily,inDaily);
AddColumn(VolLowDaily, "VLD");





On Sat, Apr 16, 2016 at 8:20 PM, Marcin Jagodziński marcin.jagodzinski@gmail.com [amibroker] <amibroker@yahoogroups.com> wrote:
 

No, it's not THIS trivial, I was using Filter of course.

On Sat, Apr 16, 2016 at 7:03 PM, Alan alan@thenorthams.us [amibroker] <amibroker@yahoogroups.com> wrote:
 

Filter = 1;
TimeFrameSet(inDaily);
VolLowDaily = LLV(Volume * C, 20);
TimeFrameRestore(); 
AddColumn(VolLowDaily, "VLD");

On 4/16/2016 11:41 AM, Marcin Jagodziński marcin.jagodzinski@gmail.com [amibroker] wrote:
 
Hello everyone,

although I've read https://www.amibroker.com/guide/h_timeframe.html several times, I still have (probably pretty trivial) problem with TimeFrameSet. 

What I want to achieve is to find the day with lowest volume (I'm using weekly bars for exploration). I've added this to my exploration


TimeFrameSet(inDaily);
VolLowDaily = LLV(Volume * C, 20);
TimeFrameRestore(); 

AddColumn(VolLowDaily, "VLD");

and I'm getting weird (high) values of VolLowDaily.

Anyone could tell me what I'm doing wrong?

best

--
Marcin Jagodziński




--
Marcin Jagodziński





--
Marcin Jagodziński


__._,_.___

Posted by: "B. Pitatzidis" <bobptz@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv