Esempio n. 1
0
        protected void buildSOSet()
        {
            SO = new ContinuousDimension("SO index", "SO index", "unit", 0, 100);

            lSO = new RightLinearSet(SO, "Low SO",0,20);
            hSO = new LeftLinearSet(SO, "High SO", 80, 100);
            mSO = new BellSet(SO, "Middle SO", 20, 5, 80);
        }
Esempio n. 2
0
        protected void buildRSISet()
        {
            RSI = new ContinuousDimension("RSI index", "RSI index", "unit", 0, 100);

            lRSI = new RightLinearSet(RSI, "Low RSI", 0, 20);
            hRSI = new LeftLinearSet(RSI, "High RSI", 80, 100);
            mRSI = new BellSet(RSI, "Middle RSI", 20, 5, 80);
        }
Esempio n. 3
0
 protected void buildMACDSet(decimal baseline)
 {
     MACD = new ContinuousDimension("MACD index", "MACD index", "unit", 0, 100);
     //TriangularSet t = new TriangularSet(MACD, " MACD", 50, 50);
     lMACD = new RightLinearSet(MACD, "Low MACD", 0, baseline);
     hMACD = new LeftLinearSet(MACD, "High MACD", baseline, 100);
 }
Esempio n. 4
0
 protected void buildOBVSet( decimal baseline)
 {
     OBV = new ContinuousDimension("OBV index", "OBV index", "unit", 0, 100);
     //TriangularSet t = new TriangularSet(OBV, " MACD", 50, 50);
     lOBV = new RightLinearSet(OBV, "Low OBV", 0, baseline);
     hOBV = new LeftLinearSet(OBV, "High OBV", baseline, 100);
 }
Esempio n. 5
0
 protected void buildActionSet()
 {
     action = new ContinuousDimension("Action", "Action for stock", "action", 0, 100);
     buyIt = new RightQuadraticSet(action, "buy stock", 0, 50, 50);
     SellIt = new LeftQuadraticSet(action, "sell stock", 0, 50, 50);
     HoldIt = new BellSet(action, "hold stock", 0, 50, 50);
 }