| / | Forum |
|
benicillin
2009.08.10 11:27
assuming that im working with the basic macd EA template that is provided, how can I open up multiple orders? right now, i can only open a buy/sell and then must close it before opening anything else. i changed the top of the code from if(total<1) ... to if(total<10) assuming that this would allow 10 open trades - which it did - however this just left me with 10 copies of the same trade at the same time, essentially just making my trade 10 times larger. thanks |
|
MQL4 Language for Newbies. Difficult Questions in Simple Phrases. This is the second article from the series "MQL4 Language for Newbies". Now we will examine more complex and advanced constructions of the language, learn new options and see, how they can be applied in everyday practice. You will get acquainted with a new cycle type 'while', new condition type 'switch', operators 'break' and 'continue'. Besides you will learn to write your own functions and work with multidimensional arrays. And for a dessert I have prepared an explanation about a preprocessor. |
|
devilian1899
2009.08.10 12:39
You need to find something to mark that moment and save it in a global variable so you can avoid double trades or more. The common one is using the open time of the candle, so you'll never have another trade during that candle.
|
|
benicillin
2009.08.11 05:16
interesting. thank you, i think ill be able to work that out.
|