Dayton Wheeler / Publications
Forum
Close Failing - when compared to moving average
Why would these closes fail? The close should occur when the open and close prices of the previous candelstick enclose the moving average. void CheckForClose() { double ma; //--- go trading only for first tiks of new bar if ( Volume [ 0 ]> 4 ) return ; //--- get Moving Average ma= iMA ( NULL