Thanks CodesGuru. That actually works as an EA on the same MT4 build as yours.
But I want to challenge you more, because the following does not work for me as a script (instead of EA). I think we have a bug!. Would you mind testing it for me.
Code:
int Ticket=OrderSend(Symbol(), OP_BUYSTOP, 1, (High[1]+0.0020), 3, (Low[1]-0.0020), 0,"BuyStop",0,0,Green);
if(Ticket<0) string MsgText = "OrderSend BUYSTOP failed with error #" + GetLastError();
Print(Symbol()+", "+(High[1]+0.0020) + ", " + (Low[1]-0.0020) + ", " +MsgText);
Do you think I need to put "NormalizeDouble" to make it work? Have you tried it without the "NormalizeDouble" in EA, and did you get 4107 error code?
If you do get 4107 error (Invalid Price), do you think it's because the MyPrice results in more than FOUR decimal places?
Thanks once again.