jues / Publications
Forum
[help]imacd's output is different with macd indicator
Hi, i modified the MACD Sample ea, make's it buy or sell close when macd goes from <0 to >0, sell or buy close when macd goes from >0 to <0. bool CSampleExpert::LongClosed() { bool res=false; if (m_macd_previous> 0 && m_macd_current< 0 ) { //--- close position