[pshaiCmd] Indicator Breakdown

1 527 Views No Comments 1 year ago
  • Indicator Breakdown command with multiple outputs for detailed control.

    Inputs:
    – values: Main data series
    – middle: Middle level.
    – upper: Upper level.
    – lower: Lower level.
    – upperCrossLb: Defines how far back upper level cross-overs and -unders are still valid. Setting this to 1 means it’s only valid “now”.
    – lowerCrossLb: Defines how far back lower level cross-overs and -unders are still valid. Setting this to 1 means it’s only valid “now”.
    – middleCrossLb: Defines how far back middle level cross-overs and -unders are still valid. Setting this to 1 means it’s only valid “now”.
    – upwardsLb: Lookback value for upward movement definition. If set to 1: current value is compared to previous.
    – downwardsLb: Lookback value for downward movement definition. If set to 1: current value is compared to previous.

    Outputs:
    – results: The results object itself
    – IsAboveMid: True if current value is above middle level
    – IsInTheZone: True if current value is above lower and below upper level
    – IsAboveUpper: True if current value is above upper level
    – IsBelowLower: True if current value is below lower level
    – IsMovingUpwards: True if values moving upwards
    – IsMovingDownwards: True if values moving downwards
    – CrossOverUpper: True if current value crossed over upper level
    – CrossUnderUpper: True if current value crossed under upper level
    – CrossOverLower: True if current value crossed over lower level
    – CrossUnderLower: True if current value crossed under lower level
    – CrossOverMiddle: True if current value crossed over middle level
    – CrossUnderMiddle: True if current value crossed under middle level

    • This topic was modified 1 year, 4 months ago by pshai.
    • This topic was modified 1 year, 4 months ago by pshai.
    • This topic was modified 1 year, 4 months ago by pshai.
    HaasScript Code
    Sign in or Register to view
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free