[amibroker] Counting Bars - I have confused myself

 

Hi


I am trying to find out how many bars would need to drop off for a negative sloping 200 day simple moving average to turn flat or positive. 


I understand that the future bars will also affect this and that the number of bars dropping off wouldn't be exact. So I am looking for an estimate only. 


What I am trying to achieve was starting 200 days ago from current Close, how many bars are there until a previous close equals today close. 


200daysago |-------Number of days here---(C)|------------------------------------| Todays Close


*Where (C) = Todays Close


Whilst I have made a few coding attempts, they are that poor that I wont put them up. 


Any help or direction appreciated. 


Regards Adam 

__._,_.___

Posted by: madwill26@yahoo.com.au
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? 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