Forum

EA works on one system and not the other.

I have been working on an EA for some time now and suddenly the code just seems to not work on my VPS anymore but still works just fine on my home PC. The issue seems to be that the trades open just fine but then modifying the stoploss of an open trade throws errors. I have tried copying the code

CheckTrailingStopLong in the built in TrailingMA object giving overload error when called

I am getting the following error when I try and call CheckTrailingStopLong inside of TrailingMA and I cannot seem to figure out what the issue is. I feel like I am missing something basic. Error: 'CheckTrailingStopLong' - no one of the overloads can be applied to the function call Pertinent Code

Newbie trying to understand handles.

I was told I need to use handles for indicators in mql5. However, looking at the examples for RSI and custom moving average scripts I do not see any handles being used. Are handles only used some of the time? When should you, or should you not, use them