Ehler's Oscillator Exiting when Contrary to Rules?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #35345 quote
    BardBard
    Participant
    Master

    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

    why-the-exit.png why-the-exit.png
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Ehler's Oscillator Exiting when Contrary to Rules?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Bard @brad Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/12/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...