Forum

Getting OrderOpenPrice to use the current OrderPrice and not the previous.

Good day. When I use OrderOpenPrice() in code, it only uses the correct OpenPrice the first time, after that it always uses the previous OpenPrice. It seems like when a order closes, the OrderOpenPrice() keeps the data and the cach is not cleared so that when the new order opens up, it keeps the old

Please help with bool

Good day all. Is there someone that can assist me with a small piece of code. I know it is probably easy but I am new to mql4 and struggling. I need a piece of code that does the following: When a specific order, lets say "ordersell_1" is triggered, I need a "true" statement when the specific order

Learning curve

Good day. Please help. The code doesn't give a Alert for "Signal1" or "Signal2" Dont know what I am doing wrong: void OnTick () { if (!CheckIfOpenOrdersByMagicNB( 111 )) { int Orderbuy = OrderSend ( _Symbol ,OP_BUY, 0.01 ,Ask, 10 ,Ask-( 1000 * _Point ),Ask+( 200 * _Point ), NULL , 111 ); }