Add interfaces, add edit position , close position to MG model.
This commit is contained in:
13
MarketDataLib/Generator/Interface/IPosition.cs
Normal file
13
MarketDataLib/Generator/Interface/IPosition.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace MarketData.Generator.Interface
|
||||
{
|
||||
public interface IPosition : IPurePosition
|
||||
{
|
||||
double TrailingStopLimit {get; set;}
|
||||
|
||||
double InitialStopLimit {get; set;}
|
||||
|
||||
double PositionRiskPercentDecimal {get; set;}
|
||||
}
|
||||
}
|
||||
19
MarketDataLib/Generator/Interface/IPurePosition.cs
Normal file
19
MarketDataLib/Generator/Interface/IPurePosition.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace MarketData.Generator.Interface
|
||||
{
|
||||
public interface IPurePosition
|
||||
{
|
||||
String Symbol {get; set;}
|
||||
|
||||
DateTime PurchaseDate {get; set;}
|
||||
|
||||
DateTime SellDate {get; set;}
|
||||
|
||||
double CurrentPrice {get; set;}
|
||||
|
||||
double PurchasePrice {get; set;}
|
||||
|
||||
double Shares {get; set;}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user