Forum

Error Modify error 130 have checked all things possible

I have code that work in other strategies, but I had to change this slightly as the order can start off with no StopLoss and no TakeProfit. I think I just need another set of eyes. Thanks in advance. This is just basic trailing stop code with an initial distance of 8 and a modify increment of say

EA turned into Indicator

I have a EA that was working fine, and suddenly turned into an indicator with I think the last release, plus I made code logic changes only. I have no indicator code up in the initialization and it is in the Experts folder, but says Indicator and will not run as an EA. I have one function that draws

How many buffers each indicator needs

Is there an article or some documentation which says how many buffers each indicator needs ? I am also wondering how if I create an indicator, how would the EA communicate with it ? As well as, if there are functions that correspond to the #property directives so I can do this dynamically in code

iMACD not working or corresponding to screen indicator

I use this to open signal buffer if((m_handle_macd=iMACD(NULL,PERIOD_M1,12,26,2,PRICE_MEDIAN))==INVALID_HANDLE) // changed from 0 to input trend I use minute chart and same parameters for the macd as the code. I watch the MACD go below 0 on screen but code still has 4's 5's etc.... it took 20

Signal on Screen vs code

I am trying to trade based on the macd , I can clearly see it is above 0 on the indicator and has been for a while, but my trader sells into the position. What am I missing. Is it because the timeframe on the Screen indicator is different and always going to be different from code ? if