kraven Posted February 1, 2011 Report Share 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 Quote Link to comment Share on other sites More sharing options...
apresau Posted February 2, 2011 Report Share 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 Quote Link to comment Share on other sites More sharing options...
kraven Posted February 3, 2011 Author Report Share Posted February 3, 2011 thanks apresau i'll give it a try Quote Link to comment Share on other sites More sharing options...
Diesel 10 Posted February 3, 2011 Report Share 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(); ??? Quote Link to comment Share on other sites More sharing options...
apresau Posted February 4, 2011 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.