Re: [amibroker] Detecting last symbol of scan

 


On Sat, May 7, 2016 at 6:04 PM, Robbie Geary <rgearyiii@gmail.com> wrote:


On Sat, May 7, 2016 at 5:57 PM, Aron Pipa aron@myafl.com [amibroker] <amibroker@yahoogroups.com> wrote:
 

stcknum = Status ( "stocknum" )  ;
if ( stcknum == 0 )
StaticVarRemove ( "count" ) ;

StaticVarAdd( "count",1 ) ;

Filter = Status ("lastbarinrange" );
AddColumn ( stcknum , "stckn" );
AddColumn ( StaticVarGet ("count" ) , "count" );


I'm not trying to detect the last bar, but the last symbol.  The static variable stcknum contains the number of explorable symbols *after* the exploration completes.  I want to know the number of explorable symbols *before* the exploration completes.

What's needed is something like Status("lastsymbol") to return true if the scan/exploration is on the last symbol and false otherwise.  Or better, Status("symbolcount") to return the number of symbols to be scanned/explored.

--
Robbie Geary

__._,_.___

Posted by: Robbie Geary <rgearyiii@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (9)
**** 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