Forum

ordermodify() function don't work

Hello when I execute the EA, the buy order is created but the error 130 message(invalid stop loss) is displayed for the function ordermodify ()? I used ordermodify() function beceause in my broker I can't created makret or pending order with stop loss and takeprofit levels

programming in mql5

Hello, I am new to programming and wanted an answer to my following question. In mql5 the instructions in the Ontick function are executed at each Tick. is there a way to take the price value (bid or ask) at a given time and store it as a reference value to use it later in the program. for example