Announcement

Collapse
No announcement yet.

Only works on loading

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Only works on loading

    The following portion on an efs works correctly when loaded/reloaded. After this it does not create a black dot when the osillator reverses direction. On reloading it works correctly. What is wrong?

    Best Regards, Alan

    zprt1 = 0;
    ctz2z999a = 0;

    // Zero out the values when the ocillator is falling

    if((wa8dd88b1MyArray[0] <= wa8dd88b1MyArray[1])) {
    gky1 = 0;
    thn1 = 0;
    }

    // when osc. is below -50 and begins to rise, make a black dot on one tick

    if(thn1 <= 0) {

    if((wa8dd88b1MyArray[1] <= -50) && (wa8dd88b1MyArray[0] >= wa8dd88b1MyArray[1])) {
    setBarThickness(18,3);
    setBarFgColor(Color.black,3);
    gky1 = 100;
    thn1 = 100;

    if(getBarState()==BARSTATE_NEWBAR) {
    ctz2z999a++;
    }

    }

    if((zprt1 >= 1) && (ctz2z999a >= 1)) {
    zprt1 = 0;
    ctz2z999a = 0;
    thn1 = 0;
    }

    }
Working...
X