| 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 (1) | Thread Tools | Display Modes |
|
|||
|
What is wrong with this code?
Can anyone tell me why I'm generating an error with this command in my EA?
HTML Code:
if(OrderSelect(bTicket,SELECT_BY_TICKET)==true)
buyOrder=OrderType();
else
Print("OrderSelect returned the error of ",GetLastError());
HTML Code:
bTicket=OrderSend(Symbol(),OP_BUYSTOP,Lots,buyPoint,0,sl,buy_tp,"Script entry",0);
if(bTicket<=0) Print("Error = ",GetLastError());
else Print("ticket = ",bTicket);
|
|
||||
|
Quote:
Your posts where moved (to this thread) but you could follow easily because they have one day of redirection. Maybe you need a bit of help trying to find your own posts. If you feel lost, with vBulletin is not difficult at all. Just click on your own profile, "find all posts by..."
__________________
Last edited by Linuxser; 10-06-2008 at 05:33 AM. |
|
|||
|
Instant Order vs Market Orders
Hello Fellow Programmers,
I received information from a friend that an EA with "Instant orders" will not work on the MT4 platforms that doesn't have a Dealing desk and this EA needs to be changed to "Market Orders". Is it true? Can someone verify this? Thanks. LF |
|
|||
|
They're the same thing.
Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV ![]() ForexArea.com Users of Gap Trader from 'Forex-Assistant' MUST Read This |
|
|||
|
Thanks to FerruFx
Quote:
fxbeginner |
|
|||
|
Quote:
FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!! Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM NEW: video presentation of the Probability Meter ... 24hrs action on the website |
|
|||
|
Account History Problem
Hello All,
I have programmed an EA that uses Limit orders instead of Market orders. Whenever a moving average changes, it uses the OrderModify function to alter the opening price of the order. This works fine, however each time the order is adjusted (fairly frequently) the Account History has a new entry saying the order has been closed. This almost hides the real trades and the reports are very hard to read. Is there a method of customising the reports or account history so that it will only show the actual trades that have taken place, rather than "modified" orders? Thanks for any replies ![]() |
|
|||
|
Quote:
if (iBars>Bars){ Code to execute when new bar arrives; Bars=iBars; }
__________________
Need a Professional Programmer? PM me! |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |