golden cross indicator

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #165423 quote
    SebF
    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
    Nicolas
    Keymaster
    Master

    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
    SebF
    Participant
    New

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

    #165433 quote
    Nicolas
    Keymaster
    Master
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

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 Nicolas
4 years, 10 months ago.

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