Forum

How to use LongCondition, CheckOpenLong, CheckCloseLong, ShortCondition, CheckOpenShort, CheckCloseShort in CExpertSignal correctly?

Hi, I want to write an EA, that uses long signals only. So far I succeeded in creating my own indicator and creating long- and short-signals using my own class derived from CExpertSignal. The long and short signals are generated using LongCondition() and ShortCondition(). However, I want my EA to

GetData returns "invalid buffer" from MACD Indicator

Hi, Im working on my frist Expert , based in the CExpertSignal . Im trying to access data from the MACD Indocator, that is located in "Examples\\MACD.ex5". The OnInit() method of MACD.mq5 in "Indicators\\Examples" says: //--- indicator buffers mapping SetIndexBuffer ( 0 ,ExtMacdBuffer