[amibroker] Re: Limit Exploration Results

 

Hello homer1001

The easiest way to achieve that is to make the Filter criteria more strict( I believe you already have a Filter variable in your code, otherwise you wouldn't be able to perform Exploration at all). It will give you less results - but of course not exactly 10.  Nevertheless I would be happy with that solution, because I'd rather know about each case meeting my criteria rather than always limiting the results to 10.

Alternatively, yes you can display exacltly as many results as you want, because you can execute some parts of the code conditionally. But in case of Exploration it is not that obvious, because you can not use AddColumn() conditionally like this;

if( LastValue( Filter ) ) AddColumn();  //    WRONG !!
or
if( MyCondition ) AddColumn();  //    WRONG !!
Addcolumn shouldn't be used conditionally. The results would be presented improperly. But there is a way to
execute some parts of Exploration formula conditionally - depending on the Filter (or any other) criteria and still be able to present the results using AddColumn(). You can also significantly improve the performance of Explorations in some cases.  I made a post about it a few days ago. You might find it useful (it's the second post in the thread):

http://amibrokerforum.proboards.com/thread/128/performance-tuning-tips

Regards

Miłosz



 

__._,_.___

Posted by: milosz.mazurkiewicz@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)
**** 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/


.

__,_._,___


EmoticonEmoticon