Uses of Class
com.bluebell.greenhouse.anther.models.position.AntherPosition
Packages that use AntherPosition
Package
Description
Contains classes for anther positions and position management.
Contains class for results computed by an
AntherTradingStrategy.Contains classes that implement trading strategies.
-
Uses of AntherPosition in com.bluebell.greenhouse.anther.models.position
Classes in com.bluebell.greenhouse.anther.models.position that implement interfaces with type arguments of type AntherPositionModifier and TypeClassDescriptionclassClass representation of a position taken in anAntherTradingStrategy.Methods in com.bluebell.greenhouse.anther.models.position with parameters of type AntherPositionModifier and TypeMethodDescriptionintAntherPosition.compareTo(AntherPosition o) Defines the sort order. -
Uses of AntherPosition in com.bluebell.greenhouse.anther.models.strategy.result
Methods in com.bluebell.greenhouse.anther.models.strategy.result that return types with arguments of type AntherPosition -
Uses of AntherPosition in com.bluebell.greenhouse.anther.strategy
Methods in com.bluebell.greenhouse.anther.strategy that return AntherPositionModifier and TypeMethodDescriptiondefault AntherPositionAntherTradingStrategy.openPosition(PositionType positionType, double lotSize, LocalDateTime positionOpened, double openPrice, double stopLoss, double takeProfit) Creates a newAntherPositionthat is considered active.Methods in com.bluebell.greenhouse.anther.strategy with parameters of type AntherPositionModifier and TypeMethodDescriptiondefault voidAntherTradingStrategy.closePosition(AntherPosition position, LocalDateTime positionClosed, double closePrice) Updates the givenAntherPositionwith a close time and price.Method parameters in com.bluebell.greenhouse.anther.strategy with type arguments of type AntherPositionModifier and TypeMethodDescriptiondefault voidAntherTradingStrategy.checkPositions(Map<String, AntherPosition> openPositions, Map<String, AntherPosition> closedPositions, MarketPrice marketPrice) Checks whether the givenMarketPricecloses an openAntherPosition.default voidAntherTradingStrategy.closeDay(MarketPrice currentPrice, Map<String, AntherPosition> openPositions, Map<String, AntherPosition> closedPositions) Closes the day, meaning close all positions on the exit signal.