Re: [amibroker] Re: 4 weeks candles/backtesting

 

Hello,

Thank you very much for your e-mail.

Weekly, monthly, quarterly and yearly intervals are builtin, so you don't need to define
them - they are always available in the Settings so you can just run backtest or any other
analysis mode using Weekly/Monthly/Quarterly/Yearly intervals without any extra steps.


Best regards,
Tomasz Janeczko
amibroker.com

On 2016-03-29 17:13, João Flávio Machado Derzi joaoderzi@gmail.com [amibroker] wrote:
Yes, weird. 
We can not choose Weekly or Monthly on preferences.
That may be a problem in backtest, optimize and even explore/scan.

On the chart, you can type it directly on the chart popup menu.
We can type any time frame we want there directly, no need to go thru preferences.



So, I guess the solution would be (1) ask for an AB update to change the preferences input and, meanwhile, (2) mount your own bars like mentioned.

Right?



About the code posted by madwill26@.

Isn't timeframeexpand() missing?

The result of the present code may be right because the last value of the array will be shown. 
Or maybe it is not right.



2016-03-29 4:05 GMT-03:00 Marcin Jagodziński marcin.jagodzinski@gmail.com [amibroker] <amibroker@yahoogroups.com>:
 


On Tue, Mar 29, 2016 at 4:45 AM, João Flávio Machado Derzi joaoderzi@gmail.com [amibroker] <amibroker@yahoogroups.com> wrote:
 
I do not know how AB builds the weekly candles.

I always thought they were a Monday to Friday interval.


Weekly candles are from Monday to Friday. But you cannot use "week" as a base for candles in Preferences, you can only use "day".



--
Marcin Jagodziński



--
Agradeço antecipadamente,

----------------------------------------------------------
João Flávio Machado Derzi
+55 (31) 9731-4469


__._,_.___

Posted by: Tomasz Janeczko <groups@amibroker.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (10)

Check out the automatic photo album with 2 photo(s) from this topic.
first day every 4th week.PNG rolling 4 week bar.PNG

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