Sorry, my mistake. No, I don't want to find the date, I'd rather find the value (and then use it in Buy like Buy = ... AND VolLowDaily > 10000)
On Sat, Apr 16, 2016 at 7:57 PM, 'B. Pitatzidis' bobptz@gmail.com [amibroker] <amibroker@yahoogroups.com> wrote:
>>>
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:HiI 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
Marcin Jagodziński
__._,_.___
Posted by: =?UTF-8?Q?Marcin_Jagodzi=C5=84ski?= <marcin.jagodzinski@gmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (7) |
**** 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/
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/
.
__,_._,___
EmoticonEmoticon