Re: [amibroker] Monthly Moving Average Crossover [1 Attachment]

 
[Attachment(s) from portfoliobuilder99@gmail.com [amibroker] included below]

I think you need TimeFrameExpand.

Read this carefully.
https://www.amibroker.com/guide/h_timeframe.html

 


Perhaps experiment with something like this,

TimeFrameSet( inMonthly );
 ma10 = MA( C, 10 );
 ma20 = MA( C, 20 );
 TimeFrameRestore(); // restore time frame to original 
 
 ma10Monthly = TimeFrameExpand(ma10, inMonthly);
 ma20Monthly = TimeFrameExpand(ma20, inMonthly);
 
Plot( ma10Monthly, "10 month ma", colorRed ); 
Plot( ma20Monthly, "20 month ma", colorBlueGrey );  

Buy = Cross(  ma10Monthly, ma20Monthly);
Sell = Cross(  ma20Monthly, ma10Monthly);


__._,_.___

Attachment(s) from portfoliobuilder99@gmail.com [amibroker] | View attachments on the web

1 of 1 Photo(s)


Posted by: portfoliobuilder99@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

Check out the automatic photo album with 1 photo(s) from this topic.
Monthly m.a. on Daily.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/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv