Forum

Could any one give suggestion on belowcode

void CheckForMaTrade() { double UpArrow = ObjectFind(0,"Up Arrow"); double DownArrow = ObjectFind(0,"Down Arrow"); double currentbar = iOpen(NULL,0,0); double previoustbar = iClose (NULL,0,1); if (OrdersTotal()== 0){ if (previoustbar+DownArrow && currentbar==UpArrow+DownArrow){

Error code 1 while modifying the order open price using OrderModify() function in MQL4

Hi I am a newbie to the forex coding... I have been trying to modify the open price of an order when the pre defined conditions are met. But while executing the order modify function, it is returning false and the error code is showing as 1. I have observed that order open price and modified open