MACD screener code issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #245360 quote
    Caldio
    Participant
    New

    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 quote
    JC_Bywan
    Moderator
    Master

    Hi,

    MyHistMACD=MACD[12,26,9](close)
    crit= MyHistMACD crosses over 0
    
    screener[crit]
    Iván González thanked this post
    #245384 quote
    Caldio
    Participant
    New

    Thank You

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

MACD screener code issue


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Caldio @caldio Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Caldio
11 months, 1 week ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/27/2025
Status: Active
Attachments: No files
Logo Logo
Loading...