Cross Over Indicator HELP please

Viewing 46 post (of 46 total)
  • Author
    Posts
  • #218826 quote
    JS
    Participant
    Master

    Hi,

    You can optionally use “BarsSince”, with this you can determine how many bars ago the different “crossings” took place…

     
    MA20=Average[20](Close)
    
    CO=Close Crosses Over MA20
    
    LastCO=BarsSince(CO)
    PreviousCO=BarsSince(CO,1)
    PreviousPrice=Close[PreviousCO]
    
    Return LastCO as "LastCO", PreviousCO as "PreviousCO"
    robertogozzi and crolakstrading thanked this post
    Scherm­afbeelding-2023-08-09-om-13.58.23.png Scherm­afbeelding-2023-08-09-om-13.58.23.png
Viewing 46 post (of 46 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

Cross Over Indicator HELP please


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 45 replies,
has 3 voices, and was last updated by JS
3 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/29/2017
Status: Active
Attachments: 20 files
Logo Logo
Loading...