Crossover over last 2 days

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #150520 quote
    telboy
    Participant
    Junior

    i cant get this to work

    does anyone know a cleaner way of saying that the price close has crossed over multiple sma’s over the past 2 days?

    Test1 = summation[2] close crosses over (sma10 AND sma20 AND sma30 AND sma40)

    appreciate any help/pointers

    #150543 quote
    JC_Bywan
    Moderator
    Master

    Hi,

    This, used on a daily timeframe, will make test1 true when the price close has crossed over your multiple sma selection, with individual check for each sma for crossover either from yesterday to today or from 2 days ago to yesterday.

    c1 = close crosses over Average[10](close)
    c2 = close crosses over Average[20](close)
    c3 = close crosses over Average[30](close)
    c4 = close crosses over Average[40](close)
    test1 = (c1 or c1[1]) and (c2 or c2[1]) and (c3 or c3[1]) and (c4 or c4[1])
    #151915 quote
    telboy
    Participant
    Junior

    thanks Noobywan thats great. appreciate your help

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

Crossover over last 2 days


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
telboy @telboy Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/14/2020
Status: Active
Attachments: No files
Logo Logo
Loading...