public ParamsBuilder WithParameterCandleOperationMode(CandleOperationMode paramValue)
        {
            var type = "Lykke.AlgoStore.CSharp.AlgoTemplate.Abstractions.Core.Functions.FunctionParamsBase+CandleValue";
            MetaDataParameter metaDataParameter = new MetaDataParameter("CandleOperationMode", paramValue, type);

            parameters.Add(metaDataParameter);

            return(this);
        }
Пример #2
0
 public FunctionParamsDTO(FunctionType functionType, DateTime startingDate, DateTime endingDate,
                          string assetPair, int period, CandleOperationMode candleOperationMode, CandleTimeInterval candleTimeInterval)
 {
     FunctionInstanceIdentifier = GetFunctionIdentifierByFunctionType(functionType);
     StartingDate        = startingDate;
     EndingDate          = endingDate;
     AssetPair           = assetPair;
     Period              = period;
     CandleOperationMode = candleOperationMode;
     CandleTimeInterval  = candleTimeInterval;
 }
Пример #3
0
        public FunctionParamsDTO(FunctionType functionType, int startDaysOffset, int endDaysOffset, string assetPair,
                                 int period, CandleOperationMode candleOperationMode, CandleTimeInterval candleTimeInterval)
        {
            var dateTimeNow = DateTime.Now;

            FunctionInstanceIdentifier = GetFunctionIdentifierByFunctionType(functionType);
            StartingDate        = dateTimeNow.AddDays(startDaysOffset);
            EndingDate          = dateTimeNow.AddDays(endDaysOffset);
            AssetPair           = assetPair;
            Period              = period;
            CandleOperationMode = candleOperationMode;
            CandleTimeInterval  = candleTimeInterval;
        }
Пример #4
0
 public InstanceParameters(string assetPair, string tradedAsset, double instanceTradeVolume,
                           CandleTimeInterval instanceCandleInterval, CandleTimeInterval functionCandleInterval,
                           CandleOperationMode functionCandleOperationMode, int functionCapacity, List <FunctionType> instanceFunctions)
 {
     AssetPair                   = assetPair;
     TradedAsset                 = tradedAsset;
     InstanceTradeVolume         = instanceTradeVolume;
     InstanceCandleInterval      = instanceCandleInterval;
     FunctionCandleInterval      = functionCandleInterval;
     FunctionCandleOperationMode = functionCandleOperationMode;
     FunctionCapacity            = functionCapacity;
     InstanceFunctions           = InstanceFunctions;
 }
Пример #5
0
 public InstanceParameters(string assetPair, string tradedAsset, double instanceTradeVolume,
                           CandleTimeInterval instanceCandleInterval, CandleTimeInterval functionCandleInterval,
                           CandleOperationMode functionCandleOperationMode, int functionPeriod, List <FunctionType> instanceFunctions,
                           bool userInvalidAlgoId, bool withoutMedatada)
 {
     AssetPair                   = assetPair;
     TradedAsset                 = tradedAsset;
     InstanceTradeVolume         = instanceTradeVolume;
     InstanceCandleInterval      = instanceCandleInterval;
     FunctionCandleInterval      = functionCandleInterval;
     FunctionCandleOperationMode = functionCandleOperationMode;
     FunctionPeriod              = functionPeriod;
     InstanceFunctions           = InstanceFunctions;
     UseInvalidAlgoId            = userInvalidAlgoId;
     WithoutMetadata             = withoutMedatada;
 }