Forum

iLow, iHigh not working? Or is it my fault?

Hello folks, What i want to do: I have two target prices. A low target and a high target. I want to check what has been reached last on the current chart. Like checking if the last renko bar was down or up. I also tried all variations of Low[], High[], iLow and iHigh, nothing changed This is what I

why is this simple code not working

It's a simple EA which should do nothing but open a trade and set the SL to the stoplevel + 2 pips Sorry if the code is ugly, it's my first day coding in MQL It's opening the trades successfully but then not modifying the SL It's always throwing error 130 . Stoplevel is 40 points with my broker