Forum

Position doesn't exist - StopLoss activation

Hi folks, got an issue with an self programmed EA. After opening my position my EA is advised to add a SL to the position. But I always get the hint below: "2016.08.17 10:29:39.064 Trades '3895623': failed modify buy 0.00 sl: 0.00000, tp: 0.00000 -> sl: 1.11690, tp: 1.15690 [Position doesn't

Last 3 Bars

Hi guys, got an issue about my first self programmed EA, again :-) bool b_last3 = false ; { for ( int i= 1 ;i< 4 ;i++) { if (i== 4 ) break ; if (Price.bar[i].close < MA[i])

RETCODE ERROR 10036 how to solve?

Hi there, i got a problem with this error code (10036). As far as I understand the MQL5 Documentation, this error says " Position with the specified POSITION_IDENTIFIER has already been closed" How do I solve this Error? Any hints or do you need more data from me? Thanks Jugler 2016.08.15