Forum

How to query if Stop Loss has been triggered

Hey guys, im working on a Expert Advisor and need some help. How can i check if a position has been closed by a triggered Stop Loss ? Currently i check if positions are open and if not, i want to know if the last position has been successful closed or as said, triggered by Stop Loss. I searched the

Switching auto trading state problem with Expert Advisor

Hello guys, I need some help getting my EA to work properly. The thing is, he can modify positions, but only if I assign the EA to my symbol chart with autotrading ALREADY ENABLED. If I assign the EA to the chart while autotrading is disabled (disabled via the button) and attempt to modify position

Remove minimum and maximum from chart

Hey guys, need some advice. If i set a minimum and a maximum for an indicator in its own window, i can do so either in header or inside OnInit(). In OnInit() i do so using IndicatorSetDouble ( INDICATOR_MINIMUM , 0.0 ); IndicatorSetDouble ( INDICATOR_MAXIMUM , 100.0 ); Now if i later need to remove