|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Order
Order is an abstract base class encapsulating the basic components of an OANDA forex order.
Note that a sell order is indicated by specifying negative units.
Method Summary | |
---|---|
double |
getHighPriceLimit()
Returns the high price limit. |
double |
getLowPriceLimit()
Returns the low price limit. |
FXPair |
getPair()
Returns the FXPair. |
double |
getPrice()
Returns the order price. |
StopLossOrder |
getStopLoss()
Returns the StopLossOrder associated with this Order. |
TakeProfitOrder |
getTakeProfit()
Returns the TakeProfitOrder associated with this Order. |
long |
getTimestamp()
Returns the timestamp for this order. |
double |
getTrailingStopLoss()
|
long |
getTransactionNumber()
Returns the OANDA transaction number |
long |
getUnits()
Returns the units field |
void |
setHighPriceLimit(double limit)
Sets the highest price that this order will trigger at. |
void |
setLowPriceLimit(double limit)
Sets the lowest price that this order will trigger at. |
void |
setPair(FXPair pair)
Sets the currency pair for this order. |
void |
setStopLoss(StopLossOrder stoploss)
Sets the stop loss for this order |
void |
setTakeProfit(TakeProfitOrder takeprofit)
Sets the take profit for this order |
void |
setTrailingStopLoss(double trailingStopLoss)
|
void |
setUnits(long units)
Sets the units. |
Method Detail |
---|
double getHighPriceLimit()
double getLowPriceLimit()
FXPair getPair()
double getPrice()
StopLossOrder getStopLoss()
StopLossOrder
TakeProfitOrder getTakeProfit()
TakeProfitOrder
long getTimestamp()
long getTransactionNumber()
long getUnits()
void setHighPriceLimit(double limit)
limit
- the highest price that this order will trigger at.void setLowPriceLimit(double limit)
limit
- the lowest price that this order will trigger at.void setPair(FXPair pair)
pair
- the FXPair for this orderFXPair
void setStopLoss(StopLossOrder stoploss)
stoploss
- the stop loss for this orderStopLossOrder
void setTakeProfit(TakeProfitOrder takeprofit)
takeprofit
- the take profit for this orderTakeProfitOrder
void setUnits(long units)
units
- the units for this orderdouble getTrailingStopLoss()
void setTrailingStopLoss(double trailingStopLoss)
trailingStopLoss
- trailing stop loss in fractional PIPs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |