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

Re: [amibroker] Re: SetOption( field, value ) - Periodicity



PureBytes Links

Trading Reference Links



It would be nice to use setOption() to change the periodicity setting.

Even though you can use time frame functions to switch back and forth in your formula different time frames (as Mike pointed out), I found that the portfolio loop always use the periodicity setting no matter what time frame you set in the code. This has caused me some problems since I often forget to set the periodicity back to daily after set it to 1 minute to run first pass before portfolio test.

One solution can be using OLE LoadSettings() function to modify the periodicity (I haven't not tried it myself), but it is overkill and can be less efficient, especially you test thousands of symbols.


On Sun, Nov 15, 2009 at 3:57 AM, dubi1974 <gonzales74@xxxxxxxxx> wrote:
 

Hi Mike,

I know this settings. But this are not the settings I am searching for. If I want to plot intraday 5min candles e.g. S&P Mini 9:30-16:15 or 24hours I can just change this in the FILTER tab.

Regards, dubi



--- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@xxx> wrote:
>
> Read about time frame support and see if that helps you:
>
> http://amibroker.com/guide/h_timeframe.html
>
> Mike
>
> --- In amibroker@xxxxxxxxxxxxxxx, "dubi1974" <gonzales74@> wrote:
> >
> > Hi,
> >
> > Maybe I was not clear. With SetOption( field, value ) I can set a lot of options in the AA window. Also in the Toolbar I can change the filtering from 24hours to just day session etc.
> > But sometimes I would like to change this for one and the same contract (as one indicator/system uses 24h hours and on other just the day session).
> > I would like to change this settings through AFL (so that the system can decide from the code, which time filtering to use for e.g. an moving average). Is this possible?
> >
> > Kind regards, dubi
> >
>




__._,_.___


**** 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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___