public AlgoMomentumSellProcess(AdvancedAMA agent, ICommunicator comm, int commodity)
            : base(agent, comm, commodity)
        {
            addCondition(new HasSupply());
            addCondition(new MomentumDecrease(11, 20, 30));

            setAction(new AlgoSell());
        }
        public AlgoMomentumBuyProcess(AdvancedAMA agent, ICommunicator comm, int commodity)
            : base(agent, comm, commodity)
        {
            addCondition(new HasNoActiveRequest());
            addCondition(new MomentumIncrease(11, 20, 30));

            setAction(new AlgoBuy(3));
        }
Пример #3
0
        public AlgoCompareSellProcess(AdvancedAMA agent, ICommunicator comm, int commodity, int minBid)
            : base(agent, comm, commodity)
        {
            addCondition(new HasSupply());
            addCondition(new AlgoBidCompare(minBid));

            setAction(new AlgoSell());
        }
Пример #4
0
        public AlgoCompareBuyProcess(AdvancedAMA agent, ICommunicator comm, int commodity, int maxAsk)
            : base(agent, comm, commodity)
        {
            addCondition(new HasNoActiveRequest());
            addCondition(new AlgoAskCompare(maxAsk));

            setAction(new AlgoBuy(10));
        }
Пример #5
0
 public AlgoProcess(AdvancedAMA agent, ICommunicator comm, int commodity,
                    List <AlgoCondition> conditions, AlgoAction action)
 {
     this.agent      = agent;
     this.comm       = comm;
     this.commodity  = commodity;
     this.conditions = conditions;
     this.action     = action;
 }
Пример #6
0
 public AlgoProcess(AdvancedAMA ama, ICommunicator comm)
 {
     this.ama        = ama;
     this.comm       = comm;
     this.commodity  = -1;
     this.algoPrice  = -1;
     this.algoAmount = -1;
     this.RequestID  = -1;
     this.enumerator = algoList.GetEnumerator();
 }
Пример #7
0
 public AlgoProcess(AdvancedAMA agent, ICommunicator comm, int commodity)
     : this(agent, comm, commodity, new List <AlgoCondition>(), null)
 {
 }