public DWT(int n, int detailLevel, AbstractIndicator indicator = null) : base(n) { priceData = new MovingQueue<double>(n); st = new SignalTransform(); this.detailLevel = detailLevel; this.indicator = indicator; }
public RWI(int n) : base(n) { subIndicators.Add("RWHI", new GenericContainer(n)); subIndicators.Add("RWLO", new GenericContainer(n)); TR = new MovingQueue<double>(n); priceData = new MovingQueue<Tick>(n); }
protected AbstractChannel(int n) { HighData = new MovingQueue<double>(n); MiddleData = new MovingQueue<double>(n); LowData = new MovingQueue<double>(n); Period = n; }
public RSI(int n = 14) : base(n) { UP = new MovingQueue <double>(n); DOWN = new MovingQueue <double>(n); AVGUP = double.NaN; AVGDOWN = double.NaN; }
protected AbstractChannel(int n) { HighData = new MovingQueue <double>(n); MiddleData = new MovingQueue <double>(n); LowData = new MovingQueue <double>(n); Period = n; }
public RSI(int n = 14) : base(n) { UP = new MovingQueue<double>(n); DOWN = new MovingQueue<double>(n); AVGUP = double.NaN; AVGDOWN = double.NaN; }
public KirshenbaumBands(int n = 20, int l = 30, double dev = 1.75) : base(n) { EMA = new EMA(n); LRValues = new MovingQueue <double>(l); STDEV = dev; }
public RWI(int n) : base(n) { subIndicators.Add("RWHI", new GenericContainer(n)); subIndicators.Add("RWLO", new GenericContainer(n)); TR = new MovingQueue <double>(n); priceData = new MovingQueue <Tick>(n); }
public KirshenbaumBands(int n = 20, int l = 30, double dev = 1.75) : base(n) { EMA = new EMA(n); LRValues= new MovingQueue<double>(l); STDEV = dev; }
public DWT(int n, int detailLevel, AbstractIndicator indicator = null) : base(n) { priceData = new MovingQueue <double>(n); st = new SignalTransform(); this.detailLevel = detailLevel; this.indicator = indicator; }
public RSquared(int n, AbstractIndicator indicator = null) : base(n) { X = new MovingQueue<double>(n); Y = new DenseVector(n); int counter = 0; for (double i = (double)-Y.Count / 2 + 0.5; i < (double)Y.Count / 2; i++) Y[counter++] = i; this.indicator = indicator; }
public PercentileRank(int n, AbstractIndicator indicator = null) : base(n) { data = new MovingQueue <double>(n); if (indicator != null) { this.indicator = indicator; } }
public Cointegration() { n = 3000; data1 = new MovingQueue<double>(n); data2 = new MovingQueue<double>(n); TEMA = new TEMA(50); AttachIndicator("Container", new GenericContainer(n)); }
public QSPolyMA(int N, AbstractIndicator indicator = null) : base(N) { tickdata = new MovingQueue<double>(N); this.indicator = indicator; X = new double[N]; for (int i = 0; i < X.Count(); i++) X[i] = i; }
public Cointegration() { n = 3000; data1 = new MovingQueue <double>(n); data2 = new MovingQueue <double>(n); TEMA = new TEMA(50); AttachIndicator("Container", new GenericContainer(n)); }
public QSPolyChannel(int n = 20, int l = 30, double dev = 1.5) : base(n) { EMA = new EMA(n); LRValues= new MovingQueue<double>(l); X = new double[l]; for (int i = 0; i < X.Count(); i++) X[i] = i; STDEV = dev; }
public UltimateOscillator(int p1 = 7, int p2 = 14, int p3 = 28) : base(p3) { prevTick = null; BP1 = new MovingQueue <double>(p1); TR1 = new MovingQueue <double>(p1); BP2 = new MovingQueue <double>(p2); TR2 = new MovingQueue <double>(p2); BP3 = new MovingQueue <double>(p3); TR3 = new MovingQueue <double>(p3); }
public Covariance() { n = 1000; data1 = new MovingQueue<double>(n); data2 = new MovingQueue<double>(n); data3 = new MovingQueue<double>(n); TEMA = new TEMA(50); AttachIndicator("Container", new GenericContainer(n)); }
public Covariance() { n = 1000; data1 = new MovingQueue <double>(n); data2 = new MovingQueue <double>(n); data3 = new MovingQueue <double>(n); TEMA = new TEMA(50); AttachIndicator("Container", new GenericContainer(n)); }
public QSPolyMA(int N, AbstractIndicator indicator = null) : base(N) { tickdata = new MovingQueue <double>(N); this.indicator = indicator; X = new double[N]; for (int i = 0; i < X.Count(); i++) { X[i] = i; } }
public UltimateOscillator(int p1 = 7, int p2 = 14, int p3 = 28):base(p3) { prevTick = null; BP1 = new MovingQueue<double>(p1); TR1 = new MovingQueue<double>(p1); BP2 = new MovingQueue<double>(p2); TR2 = new MovingQueue<double>(p2); BP3 = new MovingQueue<double>(p3); TR3 = new MovingQueue<double>(p3); }
public RSquared(int n, AbstractIndicator indicator = null) : base(n) { X = new MovingQueue <double>(n); Y = new DenseVector(n); int counter = 0; for (double i = (double)-Y.Count / 2 + 0.5; i < (double)Y.Count / 2; i++) { Y[counter++] = i; } this.indicator = indicator; }
public QSVWChannel(int n = 20, int l = 30, double dev = 1.5) : base(n) { EMA = new EMA(n); LRValues = new MovingQueue <double>(l); X = new double[l]; for (int i = 0; i < X.Count(); i++) { X[i] = i; } STDEV = dev; }
IEnumerator MovingIcon() { SquirrelIcon.transform.position = LastButton.transform.position + new Vector3(0, ICON_OFFSET, 0); FinishedMoveSquirrelIcon = false; MovingQueue mq = SquirrelIcon.GetComponent <MovingQueue>(); mq.moveTo(NewButton.transform.position + new Vector3(0, ICON_OFFSET, 0), 1.0f); yield return(new WaitForSeconds(1.1f)); FinishedMoveSquirrelIcon = true; }
IEnumerator StartTheGamePhase1() { allLoadingDone = true; yield return(new WaitForSeconds(0.5f)); // MOVE THE CAM MovingQueue mq = Camera.main.GetComponent <MovingQueue>(); camMoveTime = _bubbleBoard.getMapData().MapSizeY * 0.15f; mq.moveTo(new Vector3(Camera.main.transform.position.x, 0, Camera.main.transform.position.z), camMoveTime); yield return(new WaitForSeconds(camMoveTime)); startGamePhase1Ended = true; StartCoroutine(StartTheGamePhase2()); }
IEnumerator StartTheGamePhase2() { MovingQueue mq = Camera.main.GetComponent <MovingQueue>(); mq.StopAllCoroutines(); float newMoveTime = (camMoveTime - mq.TimeMoved) / 2.5f; mq.moveTo(new Vector3(Camera.main.transform.position.x, 0, Camera.main.transform.position.z), newMoveTime); yield return(new WaitForSeconds(newMoveTime)); // READY-GO ReadyGoText.animation.Play("ReadyGoAppear"); AudioHelper.CreatePlayAudioObject(BaseManager.GetInstance().sfxReadyGo); // ========= yield return(new WaitForSeconds(0.5f)); gameStarted = true; CreateBubbleBullet(); }
public PFE(int n) : base(n) { priceData = new MovingQueue <double>(n); }
public NeuralNetworkStrategy(int window) { dataList = new MovingQueue<double>(window); AttachIndicator("IND", new AC(60)); }
public ATR(int n = 14) : base(n) { TrueRange = new MovingQueue<double>(n); counter = 0; }
public HistoricalVol(int n) : base(n) { returnsData = new MovingQueue<double>(n); prevTick = double.NaN; }
public PFE(int n) : base(n) { priceData = new MovingQueue<double>(n); }
public WilliamsR(int n = 14) : base(n) { _highData = new MovingQueue <double>(n); _lowData = new MovingQueue <double>(n); }
protected AbstractAverage(int n) { averageData = new MovingQueue<double>(n); Period = n; }
public KAMA(int n, AbstractIndicator indicator = null) : base(n) { priceData = new MovingQueue <double>(n); this.indicator = indicator; }
public ATR(int n = 14) : base(n) { TrueRange = new MovingQueue <double>(n); counter = 0; }
public HurstIndicator(int n) : base(n) { priceData = new MovingQueue<double>(n); }
public CCI(int n = 20, double constant = 0.015) : base(n) { SMA = new SMA(n); priceData = new MovingQueue <double>(n); this.constant = constant; }
public SMA(int N, AbstractIndicator indicator = null) : base(N) { tickdata = new MovingQueue<double>(N); this.indicator = indicator; }
public PercentileRank(int n, AbstractIndicator indicator = null) : base(n) { data = new MovingQueue<double>(n); if(indicator!=null) this.indicator = indicator; }
public MFI(int n = 14) : base(n) { PositiveMF = new MovingQueue <double>(n); NegativeMF = new MovingQueue <double>(n); }
public SMA(int N, AbstractIndicator indicator = null) : base(N) { tickdata = new MovingQueue <double>(N); this.indicator = indicator; }
public WilliamsR(int n = 14):base(n) { _highData = new MovingQueue<double>(n); _lowData = new MovingQueue<double>(n); }
public ZLEMA(int n, AbstractIndicator indicator = null) : base(n) { EMA = new EMA(n); this.indicator = indicator; priceData = new MovingQueue <double>((n - 1) / 2); }
protected AbstractMultiSymbolIndicator(int n) { subIndicators = new Dictionary <string, AbstractIndicator>(); indicatorData = new MovingQueue <double>(n); Period = n; }
public HeikenAshi(int n) : base(n) { HACandle = new MovingQueue<Tick>(n); prevTick = null; }
public EMA(int N, AbstractIndicator indicator = null) : base(N) { alpha = 2.0/(N + 1); tickdata = new MovingQueue<double>(N); this.indicator = indicator; }
protected AbstractMultiSymbolIndicator(int n) { subIndicators = new Dictionary<string, AbstractIndicator>(); indicatorData = new MovingQueue<double>(n); Period = n; }
public HurstIndicator(int n) : base(n) { priceData = new MovingQueue <double>(n); }
protected AbstractAverage(int n) { averageData = new MovingQueue <double>(n); Period = n; }
public ROC(int n, AbstractIndicator indicator = null) : base(n) { tickData = new MovingQueue<double>(n); this.indicator = indicator; }
public NeuralNetworkStrategy(int window) { dataList = new MovingQueue <double>(window); AttachIndicator("IND", new AC(60)); }
public KAMA(int n, AbstractIndicator indicator = null) : base(n) { priceData = new MovingQueue<double>(n); this.indicator = indicator; }
public MFI(int n = 14) :base(n) { PositiveMF = new MovingQueue<double>(n); NegativeMF = new MovingQueue<double>(n); }
public ZLEMA(int n, AbstractIndicator indicator = null) : base(n) { EMA = new EMA(n); this.indicator = indicator; priceData = new MovingQueue<double>((n-1)/2); }
IEnumerator StartVictorySequence() { // Hide All flying bubble if (_flyingBubbles.Count > 0) { foreach (Bubble b in _flyingBubbles) { b.gameObject.SetActive(false); RemainBubbleShoot++; } } _flyingBubbles.Clear(); // Hide Bullets if (_loadedBubble != null) { _loadedBubble.gameObject.SetActive(false); _loadedBubble = null; RemainBubbleShoot++; } if (_waitingBubble != null) { _waitingBubble.gameObject.SetActive(false); _waitingBubble = null; RemainBubbleShoot++; } if (needUpdateHUD) { UpdateHUD(); needUpdateHUD = false; } yield return(new WaitForSeconds(3f)); // Shoot remain bubbles Up int pointEachBubble = GlobalData.PointReward[RemainBubbleShoot > 14 ? 14 : RemainBubbleShoot, 2]; while (RemainBubbleShoot > 0) { Bubble b = (Instantiate(BubblePrefab, WaitingPosition.position, WaitingPosition.rotation) as GameObject).GetComponent("Bubble") as Bubble; b.SetBubbleColor(Random.Range(1, 10)); StartCoroutine(b.shootUp(pointEachBubble)); RemainBubbleShoot--; //UpdateHUD(); yield return(new WaitForSeconds(0.1f)); } // // Play squirrel win animation Animator animator = PlayerSquirrel.GetComponent <Animator>(); animator.Play("Victory"); AudioHelper.CreatePlayAudioObject(BaseManager.GetInstance().sfxVictory); yield return(new WaitForSeconds(2f)); // Result calculate int highScore = Utilities.PlayerPrefs.GetInt("LevelHighScore-" + GlobalData.GetCurrentLevel(), 0); if (CurrentScore > highScore) { highScore = CurrentScore; } int star = 0; if (CurrentScore >= StarTargets[2]) { star = 3; } else if (CurrentScore >= StarTargets[1]) { star = 2; } else { star = 1; } int highStar = Utilities.PlayerPrefs.GetInt("LevelStar-" + GlobalData.GetCurrentLevel(), 0); if (star > highStar) { highStar = star; } int nextLevel = GlobalData.GetCurrentLevel() + 1; // Update Preference Utilities.PlayerPrefs.SetInt("LevelHighScore-" + GlobalData.GetCurrentLevel(), highScore); Utilities.PlayerPrefs.SetInt("LevelStar-" + GlobalData.GetCurrentLevel(), highStar); // Set icon switch\ if (nextLevel <= BranchPairSetup.MAXLEVEL) { Utilities.PlayerPrefs.SetBool("LevelUnlocked-" + (GlobalData.GetCurrentLevel() + 1), true); LevelSelectController.NewUnlockedLevel = GlobalData.GetCurrentLevel() + 1; LevelSelectController.needUpdateMoveSquirrelIcon = true; } Utilities.PlayerPrefs.Flush(); // Update Text & Star txtWinScore.text = CurrentScore.ToString(); txtWinHighScore.text = highScore.ToString(); for (int i = 0; i < star; i++) { StarDisplay[i].SetActive(true); } gameSceneController.WinMenu.gameObject.SetActive(true); for (int i = 0; i < star; i++) { MovingQueue moac = StarDisplay[i].GetComponent <MovingQueue>(); moac.moveToLocal(new Vector3(0, 0, 0), .5f, new Vector3((i - 1) * 300, 0, 0)); yield return(new WaitForSeconds(.5f)); } }
public HeikenAshi(int n) : base(n) { HACandle = new MovingQueue <Tick>(n); prevTick = null; }
public HistoricalVol(int n) : base(n) { returnsData = new MovingQueue <double>(n); prevTick = double.NaN; }
public CCI(int n = 20, double constant = 0.015) : base(n) { SMA = new SMA(n); priceData = new MovingQueue<double>(n); this.constant = constant; }