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); }
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; }
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; }
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; }
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; }