Ehler's Oscillator Exiting when Contrary to Rules?

Forums ProRealTime English forum ProOrder support Ehler's Oscillator Exiting when Contrary to Rules?

  • This topic has 0 replies, 1 voice, and was last updated 7 years ago by avatarBard.
Viewing 1 post (of 1 total)
  • #35345

    Hi
    Does anyone know why this long trade was exited? I cannot see the oscillator being anywhere need the 0.8 value in the preceding bars and the Chop Index is conditional with an “and”?

    Thanks in advance for any help,
    Bard

    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated

    // Conditions to enter long positions
    indicator1, ignored = CALL “Ehler’s Univ Osc SuperSmoother”
    c1 = (indicator1 CROSSES OVER -0.8)
    indicator2 = CALL “Choppiness Index”
    c2 = (indicator2 <= 61.8)

    IF c1 AND c2 THEN
    BUY 10 PERPOINT AT MARKET
    ENDIF

    // Conditions to enter short positions
    indicator3, ignored = CALL “Ehler’s Univ Osc SuperSmoother”
    c3 = (indicator3 CROSSES UNDER 0.8)
    indicator4 = CALL “Choppiness Index”
    c4 = (indicator4 <= 61.8)

    IF c3 AND c4 THEN
    SELLSHORT 10 PERPOINT AT MARKET
    ENDIF

     

Viewing 1 post (of 1 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login