MQL4 - automated forex trading   /  

Forum

Ask

Back to topics list To post a new topic, please log in or register

avatar
10
brave123 2008.01.18 15:39 

Nice to meet everyone.

I only want to open a position.

I do not need stopless and takeprofit.

How can I write it by ordersend sentence?

Thanks very much.


article

Forex Trading ABC

Working on financial markets represents, first of all, trade operations. We all, starting from the very childhood, have an intuitive idea of what is to buy and to sell. But Forex trading is still something special. This article deals with the ideas necessary to explain some terms. We will also consider the MQL 4 functions that correspond with those terms.


avatar
59
Automated 2008.01.18 15:48 

you may want to take a look at the following function:

http://docs.mql4.com/trading/OrderSend

there's a sample code too...


avatar
43
LesioS 2008.01.18 16:20 
in OrderSend StopLoss & TakeProfit parameters have to be set to 0.

avatar
1230
BarrowBoy 2008.01.21 20:55 
> I only want to open a position.

> I do not need stopless and takeprofit

My you really are a brave 1 ;)

Good Luck
BB


avatar
2462
phy 2008.01.22 06:52 

Here is the least you can do that will work.

Create a new SCRIPT and insert this code. Compile.

Open Navigator and drop the script onto a chart


// BUY One Lot script
int start(){
 OrderSend(Symbol(), OP_BUY, 1, Ask, 0, 0, 0 ,"", 0, 0, CLR__NONE);
 return(0);
}
Back to topics list  

To add comments, please log in or register