예제 #1
0
        public override DPModifyControl GetModifyUserInterface()
        {
            if (uiModifyControl == null)
            {
                uiModifyControl = new DPModifyMomentum(PropertyValues);
            }

            uiModifyControl.InitializeControl();

            return(uiModifyControl);
        }
예제 #2
0
        public DataProviderMomentum() : base()
        {
            // For the momentum indicator, we will start off assuming we are in the
            // "collecting data" state (which will change to "READY" when the DataProvider
            // has enough data that it can begin returning calculations.
            //dataProviderState = DataProviderState.COLLECTING_DATA;

            // Start off with ZERO momentum. As the indicator changes, POSITIVE values means market moving UP with
            // momentum. NEGATIVE values means market moving DOWN with momentum.
            momentum = 0.0;

            uiControl       = null;
            uiModifyControl = null;
            DataUpdate     += DataProviderMarketData_DataUpdate;

            lastPrint            = null;
            lastPrintQty         = null;
            lastPrintTotalVolume = 0;

            timeFrames = new VolumeTimeFrames();

            api = APIMain.Instance;
        }