public class SQOrder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
AccountBalance
The Account balance.
|
short |
BarsInTrade
The Bars in trade.
|
double |
ClosePrice
The Close price.
|
long |
CloseTime
The Close time.
|
byte |
CloseType
The Close type.
|
java.lang.String |
Comment
The Comment.
|
double |
CommSwap
The Comm swap.
|
boolean |
CommSwapApplied
The Comm swap applied.
|
double |
DD
The dd.
|
long |
Duration
The Duration.
|
FlexibleSettings |
extend
The extend.
|
boolean |
filled
The filled.
|
boolean |
finished
The finished.
|
double |
MAE
The mae.
|
double |
MFE
The mfe.
|
double |
MonteCarloPctPL
The Monte carlo pct pl.
|
double |
OpenPrice
The Open price.
|
long |
OpenStopLimitTime
The Open stop limit time.
|
long |
OpenTime
The Open time.
|
int |
Order
The Order.
|
double |
OriginalPrice
The Original price.
|
byte |
OriginalType
The Original type.
|
double |
PctAccountBalance
The Pct account balance.
|
double |
PctDD
The Pct dd.
|
double |
PctPL
The Pct pl.
|
double |
PctPL_TWR
The Pct p l_ twr.
|
double |
PipsAccountBalance
The Pips account balance.
|
double |
PipsDD
The Pips dd.
|
double |
PipsPL
The Pips pl.
|
double |
PL
The pl.
|
static double |
PL_NOT_DEFINED
The Constant PL_NOT_DEFINED.
|
java.lang.String |
Row
The Row.
|
byte |
SamplePart
The Sample part.
|
double |
Size
The Size.
|
byte |
Status
The Status.
|
double |
StopLoss
The Stop loss.
|
java.lang.String |
StrategyName
The Strategy name.
|
java.lang.String |
Symbol
The Symbol.
|
double |
TakeProfit
The Take profit.
|
int |
Ticket
The Ticket.
|
byte |
Type
The Type.
|
Constructor and Description |
---|
SQOrder() |
Modifier and Type | Method and Description |
---|---|
SQOrder |
clone() |
java.lang.Double |
getBalance(java.lang.String plType)
Gets the balance.
|
static java.lang.Byte |
getCloseType(java.lang.String type)
Gets the close type.
|
static java.lang.Byte |
getOpenType(java.lang.String type)
Gets the open type.
|
java.lang.String |
getOrderType(byte type)
Gets the order type.
|
double |
getPL(java.lang.String plType)
Gets the pl.
|
int |
getSampleType()
Gets the sample type.
|
long |
getTime(java.lang.String tradePeriod)
Gets the time.
|
long |
getTimeInTrade()
Gets the time in trade.
|
double |
getTradeDirection()
Gets the trade direction.
|
boolean |
isBalanceOrder()
Checks if is balance order.
|
boolean |
isCanceledOrder()
Checks if is canceled order.
|
boolean |
isEntryOrder()
Checks if is entry order.
|
static boolean |
isEntryOrder(byte orderType)
returns true if it is an entry order, false if it is exit order.
|
boolean |
isLong()
Checks if is long.
|
boolean |
isMarketOrder()
returns true if it is market (not pending order).
|
static boolean |
isMarketOrder(byte orderType)
Checks if is market order.
|
static boolean |
isOrderCloseType(java.lang.String type)
Checks if is order close type.
|
void |
parse(org.jdom2.Element elOrder,
java.lang.String ordersVersion)
Parses the.
|
double[] |
recognizeTickSizePointValue()
Recognize tick size point value.
|
java.lang.String |
toString() |
public static final double PL_NOT_DEFINED
public int Order
public int Ticket
public byte Type
public byte OriginalType
public double Size
public double OriginalPrice
public double OpenPrice
public double ClosePrice
public double StopLoss
public double TakeProfit
public byte Status
public long OpenTime
public long CloseTime
public long OpenStopLimitTime
public byte CloseType
public short BarsInTrade
public double PL
public double PctPL
public double PctPL_TWR
public double PipsPL
public double DD
public double PctDD
public double PipsDD
public byte SamplePart
public double CommSwap
public double MAE
public double MFE
public java.lang.String Symbol
public java.lang.String Comment
public java.lang.String StrategyName
public java.lang.String Row
public long Duration
public boolean filled
public boolean finished
public double AccountBalance
public double PctAccountBalance
public double PipsAccountBalance
public double MonteCarloPctPL
public boolean CommSwapApplied
public FlexibleSettings extend
public void parse(org.jdom2.Element elOrder, java.lang.String ordersVersion)
elOrder
- the el orderordersVersion
- the orders versionpublic double[] recognizeTickSizePointValue()
public int getSampleType()
public long getTimeInTrade()
public double getPL(java.lang.String plType)
plType
- the pl typepublic java.lang.Double getBalance(java.lang.String plType)
plType
- the pl typepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getOrderType(byte type)
type
- the typepublic double getTradeDirection()
public static java.lang.Byte getOpenType(java.lang.String type) throws java.lang.Exception
type
- the typejava.lang.Exception
- the exceptionpublic static boolean isOrderCloseType(java.lang.String type) throws java.lang.Exception
type
- the typejava.lang.Exception
- the exceptionpublic static java.lang.Byte getCloseType(java.lang.String type) throws java.lang.Exception
type
- the typejava.lang.Exception
- the exceptionpublic static boolean isMarketOrder(byte orderType)
orderType
- the order typepublic boolean isCanceledOrder()
public boolean isMarketOrder()
public static boolean isEntryOrder(byte orderType)
orderType
- the order typepublic boolean isEntryOrder()
public long getTime(java.lang.String tradePeriod)
tradePeriod
- the trade periodpublic SQOrder clone()
clone
in class java.lang.Object
public boolean isBalanceOrder()
public boolean isLong()