Disliked{quote} many ways, here are 2: 1. when order 1 is confirmed filled save a double value of this entry price (in this case 1,0100). then simple compare this value with current price value, when its more then 200 point difference do the next order..... 2. you can mark your first order with special magicnumber or order comment, read the entry price from this order and compare this to current price. its slower way... but most dont need extrem fast running programs for last milliseconds , so still ok for most traders. when programm is very big and oftern...Ignored
example:
double check=OrderOpenPrice();
if (....)
dobuy(Symbol(),Lots,SL,TP,0,""); \\order 1 how to get entry price order 1 to check?
i'm a newbe coder.
