| Package | Description |
|---|---|
| com.jfx | |
| com.jfx.strategy |
| Modifier and Type | Field and Description |
|---|---|
static TradeOperation |
TradeOperation.OP_BUY
Buying position.
|
static TradeOperation |
TradeOperation.OP_BUYLIMIT
Buy limit pending position.
|
static TradeOperation |
TradeOperation.OP_BUYSTOP
Buy stop pending position.
|
static TradeOperation |
TradeOperation.OP_SELL
Selling position.
|
static TradeOperation |
TradeOperation.OP_SELLLIMIT
Sell limit pending position.
|
static TradeOperation |
TradeOperation.OP_SELLSTOP
Sell stop pending position.
|
| Modifier and Type | Method and Description |
|---|---|
static TradeOperation |
TradeOperation.getTradeOperation(int val) |
| Modifier and Type | Method and Description |
|---|---|
double |
MT4.accountFreeMarginCheck(String symbol,
TradeOperation cmd,
double volume)
Returns free margin that remains after the specified position has been opened at the current price on the current account.
|
int |
MT4.orderSend(String symbol,
TradeOperation cmd,
double volume,
double price,
int slippage,
double stoploss,
double takeprofit,
String comment,
int magic,
Date expiration,
long arrowColor)
The main function used to open a position or place a pending order.
|
| Modifier and Type | Method and Description |
|---|---|
TradeOperation |
OrderInfo.getType() |