Forum

Need explanation on working of Stoploss of an order in EA

Hello, I'm testing my first simple EA. It opens an order with a stop loss some pips above the high. I would expect if in the next bar the stoploss level is exceeded it would close the order. Much like it closes the order when a takeprofit target is reached. But the stop loss does not work like I

Simple expected result with ea tester did not show up

Hi, I try to understand MQL4 and the working of the tester. I have some simple code which I expected to draw (lots of) arrows on the chart. But it only draws one arrow. Maybe I do not know how the tester activates the start() routine or the code is not correct. The code to draw up arrows: int