com.oanda.fxtrade.api
Interface TrailingStop


public interface TrailingStop

This interface represents a trailing stop loss (TS) for a MarketOrder (trade)


Method Summary
 double getCurrentValue()
          The current value is the distance between the trigger price and market price.
 long getCurrentValueTime()
           
 FXPair getPair()
           
 long getTicketNumber()
           
 double getTrailingAmount()
           
 double getTrailingAmountAsPrice()
           
 boolean isBuy()
           
 

Method Detail

getPair

FXPair getPair()
Returns:
the currency pair associated with this TS

getTicketNumber

long getTicketNumber()
Returns:
the transaction number for the MarketOrder this TS is associated with

isBuy

boolean isBuy()
Returns:
true if the trade is long, false otherwise

getTrailingAmount

double getTrailingAmount()
Returns:
the trailing amount in PIPs

getTrailingAmountAsPrice

double getTrailingAmountAsPrice()
Returns:
the trailing amount as a price

getCurrentValue

double getCurrentValue()
The current value is the distance between the trigger price and market price. This value changes as the market price changes.

Returns:
the distance of the TS as a price

getCurrentValueTime

long getCurrentValueTime()
Returns:
the time the distance was last computed


Copyright © 2005 OANDA Corporation. All Rights Reserved.