-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhow-to-setup-buystop-sellstop.txt
103 lines (70 loc) · 2.59 KB
/
how-to-setup-buystop-sellstop.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
OP_BUY
========================================
Ask
Ask-StopLoss
Ask+TakeProfit
You Buy at the current Ask price of the currency!
You set the StopLoss Below (-) the Ask price!
You set the TakeProfit Above (+) the Ask price!
Example:
status = OrderSend(Symbol(),OP_BUY,Lots,Ask,slippage,
Ask-StopLoss*Point,Ask+TakeProfit*Point,"comment",_SYS_ID,0,Green);
OP_SELL
========================================
Bid
Bid+StopLoss
Bid-TakeProfit
You Sell at the current Bid price of the currency!
You set the StopLoss Above (+) the Bid price!
You set the TakeProfit Below (-) the Bid price!
Example:
status = OrderSend(Symbol(),OP_SELL,Lots,Bid,slippage,
Bid+StopLoss*Point,Bid-TakeProfit*Point, "comment",_SYS_ID,0,Green);
OP_BUYLIMIT
========================================
Ask-Level
Ask-Level-StopLoss
Ask-Level +TakeProfit
You Buy at future price level Below the current Ask price of the currency!
You set the StopLoss Below (-) the Ask - the level price!
You set the TakeProfit Above (+) the Ask - the level price!
Example:
status = OrderSend(Symbol(),OP_BUYLIMIT,Lots,Ask-Level*Point,slippage,
(Ask-Level*Point)-StopLoss*Point,
( Ask-Level*Point)+TakeProfit*Point,"comment",_SYS_ID,0,Green);
OP_BUYSTOP
========================================
Ask+Level
Ask+Level -StopLoss
Ask+Level +TakeProfit
You Buy at future price level Above the current Ask price of the currency!
You set the StopLoss Below (-) the Ask + the level price!
You set the TakeProfit Above (+) the Ask + the level price!
Example:
status = OrderSend(Symbol(),OP_BUYSTOP,Lots,Ask+Level*Point,slippage,
(Ask+Level*Point)-StopLoss*Point,
( Ask+Level*Point)+TakeProfit*Point,"comment",_SYS_ID,0,Green);
OP_SELLLIMIT
========================================
Bid+Level
Bid +Level +StopLoss
Bid+Level –TakeProfit
You Sell at future price level Above the current Bid price of the currency!
You set the StopLoss Above (+) the Bid + the level price!
You set the TakeProfit Below (-) the Bid + the level price!
Example:
status = OrderSend(Symbol(),OP_SELLLIMIT,Lots,Bid+Level*Point,slippage,
(Bid+Level*Point)+StopLoss*Point,
(Bid +Level*Point)-TakeProfit*Point,"comment",_SYS_ID,0,Green);
OP_SELLSTOP
========================================
Bid-Level
Bid -Level +StopLoss
Bid-Level-TakeProfit
You Sell at future price level Below the current Bid price of the currency!
You set the StopLoss Above (+) the Bid + the level price!
You set the TakeProfit Below (-) the Bid - the level price!
Example:
status = OrderSend(Symbol(),OP_SELLSTOP,Lots,Bid-Level*Point,slippage,
(Bid-Level*Point)+StopLoss*Point,
(Bid -Level*Point)-TakeProfit*Point,"comment",_SYS_ID,0,Green);