Any way to get current date in an exploration?

There's a "rangefromdate" and "rangetodate" in the Status() function. But is there a way to get the date that the script is currently working on as it's running through the range?

For debug purposes, if I have a range of dates in an exploration and I think that a specific stock for some dates should be triggering the Filter to 1 but don't, I'd like to print out some array entries for various parts of the conditions I've put together in the Filter statement.

I guess the way to do it is to set Filter to 1 and use AddColumn() to print out the info then see how specific dates aren't triggering Filter to 1 for it during "the real" exploration.

If you want output data per array condition then assign that condition to Filter variable.

your_condition = C > MA(C,50);// example 

Filter = your_condition;

So then result list will show data only where C > MA in upper example.
Of course you may add AddColumn lines of your choice.

You may add multi conditions too

your_condition1 = C > MA(C,50);// example 
your_condition2 = MACD() > 0;// example 

Filter = your_condition1 AND your_condition2;

or

your_condition1 = C > MA(C,50);// example 
your_condition2 = MACD() > 0;// example 

Filter = your_condition1 OR your_condition2;

etc.

But it is already explained here:
http://www.amibroker.com/guide/h_exploration.html

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.