| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (2) | Thread Tools | Display Modes |
|
|||
|
Hi,
PHP Code:
is GetPosition, StartOrderTime, EndOrderTime will be executed? Cheers |
|
||||
|
Quote:
see code for fix & explanation Code:
extern bool Direction_Up=true; //-- bool with a lower case "b"
string Dir; //-- Dir has to be declared as a string
if(Direction_Up==true) Dir="UP";
ObjectCreate("Dir", OBJ_LABEL, 0, 0, 0);
ObjectSetText("Dir",Dir, 10, "Arial", White); // -- you left out the text to print - you named the object only.
ObjectSet("Dir", OBJPROP_CORNER, 1);
ObjectSet("Dir", OBJPROP_XDISTANCE, 36);
ObjectSet("Dir", OBJPROP_YDISTANCE, 120);
SaxMan Last edited by SaxMan; 08-04-2007 at 09:55 AM. |
|
|||
|
Weeks?!
MQL4: automated forex trading, strategy tester and custom indicators with MetaTrader search for OrderSend() - docs Quote OrderSend - MQL4 Documentation int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE) symbol - Symbol for trading. cmd - Operation type. It can be any of the Trade operation enumeration. volume - Number of lots. price - Preferred price of the trade. slippage - Maximum price slippage for buy or sell orders. stoploss - Stop loss level. takeprofit - Take profit level. comment - Order comment text. Last part of the comment may be changed by server. magic - Order magic number. May be used as user defined identifier. expiration - Order expiration time (for pending orders only). arrow_color - Color of the opening arrow on the chart. If parameter is missing or has CLR_NONE value opening arrow is not drawn on the chart. So in our case we have this: PHP Code:
No stoploss, no takeprofit. Please note: your broker (most likely) will not accept new orders on 15:30, don't even dream about it. Yes, it will work on demo but not on real account - not any time sooner than 5 minutes before the news and no less than 3 minutes after the news. Use search engines Yahoo! and others. PS: if you want me to write an EA for you, PM me.
__________________
MQL4 programming is easy ^^ |
|
||||
|
Quote:
Dave <><<< This Force Index indicator is available from the Meta tradeplateform indicators, but without coding! Last edited by iscuba11; 08-04-2007 at 11:40 PM. |
|
||||
|
I think the terminology is "limit orders"; stop orders are pending orders in reverse to the price movement, and limit orders are pending orders with the price movement. Thus, you'd set a BuyLimit (or SellStop) above the current price and a SellLimit (or BuyStop) below the price. Apart from that, you already have the basic elements.... or maybe someone else wants to assist with actual code.
|
|
||||
|
Quote:
All you have to do is: Code:
ObjectCreate("Object Name",OBJ_LABEL,1,0,0);
In this light I often use a "Blank" indicator window to place object labels in and often use these object labels to test my code "Live - as it happens" to confirm that my code is indeed operating correctly and things occur when and how they should. |
|
|||
|
ralph.ronnquist
SellLimit - sell above the price BuyLimit - buy below the price If you don't trust me - try setting a SellLimit below the price and post a picture with such a trade ![]()
__________________
MQL4 programming is easy ^^ |
![]() |
| Bookmarks |
| Tags |
| histogram, forex, ZUP_v1.mq4 |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
|
||||
| Posted By | For | Type | Date | |
| OzFx System:) - Page 639 | This thread | Refback | 06-21-2008 10:53 PM | |
| Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart | This thread | Refback | 12-08-2007 12:46 PM | |