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

Re: [amibroker] Intraday Exploration and Time



PureBytes Links

Trading Reference Links

all,

As an example, I ran an exploration using the following code but I cannot seem to sort all the signals by the most current time in ascending order.  It seems that it will sort the names  alphabetically first and then time. 

Filter = 1 ;
SetOption("NoDefaultColumns",True);
AddTextColumn(Name(), "Name");
AddColumn ( Buy, "Buy", 1 ) ;
AddColumn ( Short, "Short", 1 ) ;
AddColumn ( TimeNum(), "Timenum", 1 ); //can it be time only without date?

Also, if I set filter = buy and short, i do not get any results.  Maybe it will only work during trading hours.   However, if I run  "SCAN", it will  list of the trading signals occurred on the day specified.

Hope you can help

thanks

tony
On 11/27/05, Tony Lei <yiupang91@xxxxxxxxx> wrote:
Graham,

First, I want to thank you for taking the time of helping me figure out my previous problems.  It is a blessing and it helps me learn and get more practice coding in AFL. 

Regarding my last post, I performed an intraday exploration for November 25th (range from 11/25 to 11/25) but I am not retrieving any results.  However, when I run "Scan", I receive all the signals that were produced on that day.

thanks

tony



On 11/27/05, Graham <kavemanperth@xxxxxxxxx > wrote:
Possibly the best way to show time is to use Timenum()
AddColumn( TimeNum(), "Timenum", 1 );

The results of explore will depend on what you have the Filter set
to... need more information. Also what do you mean by 'session'

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm



On 11/26/05, Tony Lei <yiupang91@xxxxxxxxx> wrote:
> Hi all,
>
> I am running an exploration and would like to display time only (without date) in one of my columns.  What is the best way to achieve this?
>
> Also, why is it that when I run an exploration, it does not retrieve any results from a prior session while using "scan" does?
>
> thanks
>
> tony
>


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS







Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS