| 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 | Thread Tools | Display Modes |
|
|||
|
Hi,
I have some questions too. But can You please write the code and explain it to me short, with an example please? 1)If at 12:00, for example, I opened 2 orders, then I want to close the first order, not all 2 of them, at 1:00. Would someone please show me an example of this with code? 2)I paste the code, PHP Code:
What should I declare as variables? Would You please show me a simple example? Last edited by MQL4; 08-02-2007 at 03:25 PM. |
|
|||
|
Quote:
When I do that, I get HUGE font. How can I change it? Also, If I have a buystop, at 60. And the price is at 50. If the price goes to 51, I want the buystop to go to 61. When the price goes up 1, I want the buystop to go up one. What is the code? Thank You, MQL4. |
|
||||
|
You would have to modify the the order's OrderOpenPrice() using the OrderModify() function.
__________________
"Don't work harder, work smarter." -- my Java professor Coder for Hire: http://www.firecell-fx.com |
|
||||
|
learning process
MQL4, this is NOT the way to learn how to code.
If you want to learn how to bake a cake (yummie..) you don't start asking someone to do it for you. You get a recipe (in your case: the Learning how to code MQL thread) and the ingredients (F1 remember?) Open lots of existing experts and look what's in it, how its organised and modify it as a first excercise to howto "bake your cake". Now regarding your BUYSTOP order: Type OrderModify, select it and press F1. Read the parts that specifically tell you about pending orders. Good luck.
__________________
Better being out, wishing to be in than being in and wishing to be out..... |
|
||||
|
Quote:
Hey HerbertH.... I'm eatin' yo' baby! ![]()
__________________
"Don't work harder, work smarter." -- my Java professor Coder for Hire: http://www.firecell-fx.com |
|
|||
|
Quote:
|
![]() |
| Bookmarks |
| Tags |
| close, eas, learn mql4 video, profit, reach |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Learning Cycles For New Traders | Dan7974 | General Discussion | 350 | 01-18-2008 06:04 PM |
| Learning to code for autotrading | GoatT | Metatrader Programming | 8 | 01-10-2007 08:55 PM |
| Self learning expert | mrtools | Expert Advisors - Metatrader 4 | 32 | 10-22-2006 05:29 PM |