Class MetatraderTrade


  • public class MetatraderTrade
    extends Object
    MetaTrader trade (see https://metaapi.cloud/docs/client/models/metatraderTrade/)
    • Field Detail

      • symbol

        public String symbol
        Symbol to trade or null
      • volume

        public Double volume
        Order volume or null
      • openPrice

        public Double openPrice
        Order limit or stop price or null
      • stopLoss

        public Double stopLoss
        Stop loss price or null
      • takeProfit

        public Double takeProfit
        Take profit price or null
      • orderId

        public String orderId
        Order id or null, must be specified for order modification commands
      • positionId

        public String positionId
        Position id or null, must be specified for position modification commands
      • comment

        public String comment
        Order comment or null. The sum of the line lengths of the comment and the clientId must be less than or equal to 26. For more information see https://metaapi.cloud/docs/client/clientIdUsage/
      • clientId

        public String clientId
        Client-assigned id or null. The id value can be assigned when submitting a trade and will be present on position, history orders and history deals related to the trade. You can use this field to bind your trades to objects in your application and then track trade progress. The sum of the line lengths of the comment and the clientId must be less than or equal to 26. For more information see https://metaapi.cloud/docs/client/clientIdUsage/
      • magic

        public Integer magic
        Magic number (expert adviser id) or null
    • Constructor Detail

      • MetatraderTrade

        public MetatraderTrade()