Cross Over Indicator HELP please

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

    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
Viewing 46 post (of 46 total)
  • You must be logged in to reply to this topic.

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
2 years, 6 months ago.

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