kraven Posted February 1, 2011 Report Posted February 1, 2011 hello all, can someone take a look at this MTF-Oscillator of Moving Average (OsMA). i run it on 30min chart with 3 OsMA's on (setting 0...60....240) for chart TF, 1hr and 4hr. The problem is it needs constant re-freshing for the 60 and the 240 OsMA indi's to keep up.......is there anyone out there that can fix this please. http://www.4shared.com/file/n4peyh2U/OsMA_MTF-A.html many thanks
apresau Posted February 2, 2011 Report Posted February 2, 2011 Hi kraven Change this line in the start function int l_ind_counted_0 = IndicatorCounted(); to this int l_ind_counted_0; should do the trick kraven 1
kraven Posted February 3, 2011 Author Report Posted February 3, 2011 thanks apresau i'll give it a try
Diesel 10 Posted February 3, 2011 Report Posted February 3, 2011 Hi kraven Change this line in the start function int l_ind_counted_0 = IndicatorCounted(); to this int l_ind_counted_0; should do the trick I couldn't find that line. This was the closest: int i,shift,limit,y=0,counted_bars=IndicatorCounted(); ???
apresau Posted February 4, 2011 Report Posted February 4, 2011 Oops, my bad; Wrong MTF OsMA. change this int i,shift,limit,y=0,counted_bars=IndicatorCounted(); to this int i,shift,limit,y=0,counted_bars; this will refresh the indicator at each tick
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now