golden cross indicator

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #165423 quote
    SebFSebF
    Participant
    New

    Hello,

    I try to display a golden cross indicator using the following code found here : https://www.prorealcode.com/prorealtime-market-screeners/golden-cross-stock-screener/

    mm50 = average[50](close)
    mm200 = average[200](close)
    
    
    //bullish golden cross
    bullish = mm50 crosses over mm200
    bearish = mm50 crosses under mm200
    
    
    SCREENER [bullish or bearish] (Variation as "% change from previous day")

    It doesn’t work; I get an error message saying “program shall be finished by return”

    It’s the first time I try to code with ProRealtime, somebody could help me ?

    I guss something is missing in the code

    #165424 quote
    NicolasNicolas
    Keymaster
    Legend

    This is a screener code (market scanner), not an indicator.

    What do you expect to be plotted on the chart? An arrow for each of the 2 moving average crossing?

    #165425 quote
    SebFSebF
    Participant
    New

    Yes exactly, and the best would be to have an alarm when crossing

    #165433 quote
    NicolasNicolas
    Keymaster
    Legend
Viewing 4 posts - 1 through 4 (of 4 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

golden cross indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
SebF @sebf Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by NicolasNicolas
5 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/26/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...