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

 

Humm, I did not think straight.

If weekly bars are from Monday to Friday, you can set preferences on daily and use timeframeset to weekly.

So, you would be on weekly bars.

Em 29 de mar de 2016 12:13 PM, "João Flávio Machado Derzi" <joaoderzi@gmail.com> escreveu:
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: =?UTF-8?Q?Jo=C3=A3o_Fl=C3=A1vio_Machado_Derzi?= <joaoderzi@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (9)

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