[amibroker] Calculate Multiple Moving Avg net Change

 

The following plots a rainbow of moving averages by looping through and plotting each result.

I have struggled for hours trying to find a way to capture how many of these 17 MA's are up from their prior

value (assign a +1) versus how many are down from their next-to-last values (assign a -1) If 10 MA's are

up versus 7 MA's down then the value would be 3 for example.


for (i=5; i<22;i++) {

Plot(MA(Close,i),"",41,1+4096);

}


Accessing arrays has never been my strong point so any "code gifted" expert who could help would be

really appreciated. Seems like should be simple but light not going on.


Thanks 


Dean H.

__._,_.___

Posted by: deanhodgins@comcast.net
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Save time and get your email on the go with the Yahoo Mail app
Get the beautifully designed, lighting fast, and easy-to-use Yahoo Mail today. Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

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