MT4: InputBox() in C# (sharp) sample - ask for experts/developers
As MT5 is nearing(?) completion, I doubt that something like that would be put in MT4
there is a project for mt4 inputbox.dll
I dont remember where i got it from but you can download it from my site;
// www.fx1.net 2009 - 2011 #import "inputbox.dll" string InputBox(string prompt, string title, string default_value); #import int MAGIC1=16248244; #include <libtrade.mqh> #include <libpv.mqh> //+------------------------------------------------------------------+ //| script program start function | //+------------------------------------------------------------------+ int start() { string s=""; if (PendingTrade(MAGIC1)>0) { PlaySound("alert.wav"); OrderDelete(PendingTrade(MAGIC1)); RefreshRates();} s=InputBox("Type Price:","Input",""); Print("Got:",s," --> ",StrToDouble(s)); if (StrToDouble(s)>Ask) { Print("Sending order"); double slippage=Ask-Bid; OrderSend(Symbol(),OP_BUYSTOP,1,StrToDouble(s)+slippage,0,0,0,"SS",MAGIC1,0); } if (StrToDouble(s)<Bid) { Print("Sending order"); slippage=Ask-Bid; OrderSend(Symbol(),OP_BUYLIMIT,1,StrToDouble(s)+slippage,0,0,0,"SS",MAGIC1,0); } return(0); } //+------------------------------------------------------------------+
fx1.net:
there is a project for mt4 inputbox.dll
I dont remember where i got it from but you can download it from my site;
incredible!!! many thanks!!! ... i look forward this file many sites and days... big dark beer for U...
Can you add the InputBox() function on Meta Trader 4 (with new release) like the sample below ?
Here -> http://www.csharp-examples.net/inputbox/ is the sample of the source code in C#.
Developers: Can U implemente it to the MQL4 ?
MQL4 experts: How to implemente above sample ( C# ) into MQL4 code in Expert Advisor project ??