MACD screener code issue

Forums ProRealTime English forum ProScreener support MACD screener code issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • #245360

    Hi guys, am having issues with creating a new MACD screener, keep getting the same error message  (Line 1, Characters Missing, Suggestion: End of Code)

    code is:

    // MACD standard settings
    shortTerm = 12
    longTerm = 26
    signal = 9

    macd = exponentialaverage[shortTerm](close) – exponentialaverage[longTerm](close)
    macdSignal = exponentialaverage[signal](macd)
    hist = macd – macdSignal
    histPrev = hist[1]

    // Histogram crosses from negative to positive
    if hist > 0 and histPrev <= 0 then
    screener[0] = hist
    endif

    #245363

    Hi,

     

     

    1 user thanked author for this post.
    #245384

    Thank You

Viewing 3 posts - 1 through 3 (of 3 total)

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