7 day sma crossing 50 day sma with volume help

Viewing 5 posts - 31 through 35 (of 35 total)
  • Author
    Posts
  • #110615 quote
    robertogozzi
    Moderator
    Master

    Hey man, you never talked about crossings, you always talked about ma7 being >ma50.

    When you attach pics, please make sure instrument, TF, dates and times of bars are clearly visible and, above all, the last current candlestick must be visibile.

    When you know exactly your conditions please post them as a list, without attaching pics. When you say crossing or pullback or touch I know what it is, so no pic is needed, just plain understandable text is all I/we need.

    #110622 quote
    egosbar
    Participant
    Junior

    sorry mate i thought i mentioned sma 7 touch or crosses 50 sma a few times ,  thats obviously why its not working my bad explanations of what im trying to do

    7 day sma touches or crosses over the 50 day sma within the last 5 days of current date

    volume 1.5 times 200 day average

    sma 7 trending up last 3 candles

    #110629 quote
    robertogozzi
    Moderator
    Master

    There you go:

    ma7   = average[7,0](close)
    ma50  = average[50,0](close)
    Crossover = ma7 CROSSES OVER ma50
    Cond0 = summation[6]((Abs(ma7 - ma50) <= (2 * pipsize)) OR Crossover)
    Cond1 = Cond0 > 0 AND Cond0 < 6
    Cond2 = (summation[3](ma7 > ma7[1]) = 3)
    test  = Cond1 AND Cond2 AND volume >= average[200,0](volume)*1.5
    screener[test]
    #110631 quote
    egosbar
    Participant
    Junior

    sorry robert , still not showing only 7 day = to or crossover 50 day sma within 5 days of close current date , some are still not crossed over or showing crossover more than 5 days old

    #110632 quote
    egosbar
    Participant
    Junior

    ok pretty sure i figured it out thanks a lot , only problem with the code i think  was with line 4 correct me if im wrong i just changed <=      to       >=

    seems to be working now

    ma7   = average[7,0](close)
    ma50  = average[50,0](close)
    Crossover = ma7 CROSSES OVER ma50
    Cond0 = summation[6]((Abs(ma7 - ma50) >= (2 * pipsize)) OR Crossover)
    Cond1 = Cond0 > 0 AND Cond0 < 6
    Cond2 = (summation[3](ma7 > ma7[1]) = 3)
    test  = Cond1 AND Cond2 AND volume >= average[200,0](volume)*1.5
    screener[test]
Viewing 5 posts - 31 through 35 (of 35 total)
  • You must be logged in to reply to this topic.

7 day sma crossing 50 day sma with volume help


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
egosbar @egosbar Participant
Summary

This topic contains 34 replies,
has 4 voices, and was last updated by egosbar
6 years, 5 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/15/2019
Status: Active
Attachments: 10 files
Logo Logo
Loading...