determineOpenCloseDurationPerPercent ({ opening, totalDurationOpen, totalDurationClose  }) {
    assert.isBoolean(opening);
    assert.isNumber(totalDurationOpen);
    assert.isNumber(totalDurationClose);
    assert.isAbove(totalDurationOpen, 0);
    assert.isAbove(totalDurationClose, 0);

    const fullOpenCloseTime = opening ? totalDurationOpen : totalDurationClose;
    const durationPerPercentage = fullOpenCloseTime / 100;

    return durationPerPercentage;
  }
// Determine how long it should take to increase/decrease a single %
Determine how long it should take to increase/decrease a single %
Determine how long it should take to increase / decrease a single %
determineOpenCloseDurationPerPercent ({ opening, totalDurationOpen, totalDurationClose  }) {
    assert.isBoolean(opening);
    assert.isNumber(totalDurationOpen);
    assert.isNumber(totalDurationClose);
    assert.isAbove(totalDurationOpen, 0);
    assert.isAbove(totalDurationClose, 0);
    const fullOpenCloseTime = opening ? totalDurationOpen : totalDurationClose;
    const durationPerPercentage = fullOpenCloseTime / 100;
    return durationPerPercentage;
  }
determineOpenCloseDurationPerPercent ( { opening , totalDurationOpen , totalDurationClose } ) { assert . isBoolean ( opening ) ; assert . isNumber ( totalDurationOpen ) ; assert . isNumber ( totalDurationClose ) ; assert . isAbove ( totalDurationOpen , 0 ) ; assert . isAbove ( totalDurationClose , 0 ) ; const fullOpenCloseTime = opening ? totalDurationOpen : totalDurationClose ; const durationPerPercentage = fullOpenCloseTime / 100 ; return durationPerPercentage ; }
Determine how long it should take to increase/decrease a single %
Determine how long it should take to increase / decrease a single %