Conversion of Pullback Scan from TC2000 to PRT10.3

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #137885 quote
    lmztrader
    Participant
    New

    PullBack scan for stock trading at avg volume (50) > 400k, TC2000 code below; Thanks a lot.

    ( ( (H1 > MAXH20.2 AND H < H1) OR (H2 > MAXH20.3 AND H < H2) OR (H3 > MAXH20.4 AND H < H3) OR (H4 > MAXH20.5 AND H < H4) OR (H5 > MAXH20.6 AND H < H5) OR (H6 > MAXH20.7 AND H < H6) OR ( H7 > MAXH20.8 AND H < H7) OR (H8 > MAXH20.9 AND H < H8) AND H < MAXH20.1 )

    OR

    ( (L1 < MINL20.2 AND L > L1) OR (L2 < MINL20.3 AND L > L2) OR (L3 < MINL20.4 AND L > L3) OR (L4 < MINL20.5 AND L > L4) OR (L5 < MINL20.6 AND L > L5) OR (L6 < MINL20.7 AND L > L6) OR (L7 < MINL20.8 AND L > L7) OR (L8 < MINL20.9 AND L > L8) AND L > MINL20.1) )

    AND ( AVGV50.1 > 4000)

    #137914 quote
    Nicolas
    Keymaster
    Master

    I think that this stock screener could be translated as follow:

    test = ( ( (High[1] > highest[20](high)[2] AND High < High[1]) OR (High[2] > highest[20](high)[3] AND High < High[2]) OR (High[3] > highest[20](high)[4] AND High < High[3]) OR (High[4] > highest[20](high)[5] AND High < High[4]) OR (High[5] > highest[20](high)[6] AND High < High[5]) OR (High[6] > highest[20](high)[7] AND High < High[6]) OR (High[7] > highest[20](high)[8] AND High < High[7]) OR (High[8] > highest[20](high)[9] AND High < High[8]) AND High < highest[20](high)[2] ) OR ( (Low[1] < lowest[20](low)[2] AND Low > Low[1]) OR (Low[2] < lowest[20](low)[3] AND Low > Low[2]) OR (Low[3] < lowest[20](low)[4] AND Low > Low[3]) OR (Low[4] < lowest[20](low)[5] AND Low > Low[4]) OR (Low[5] <lowest[20](low)[6] AND Low > Low[5]) OR (Low[6] < lowest[20](low)[7] AND Low > Low[6]) OR (Low[7] < lowest[20](low)[8] AND Low > Low[7]) OR (Low[8] < lowest[20](low)[9] AND Low > Low[8]) AND Low > lowest[20](low)[1]) ) and average[50][1]>4000
    
    screener[test]

     

    Please confirm it returns the stocks you are looking for.

    #138034 quote
    lmztrader
    Participant
    New

    WOW that was quick. Much appreciated. I’ll try it today and report on outcome

    Merci beaucoup de votre aide si rapide 🙂

    Laurent

    #138037 quote
    lmztrader
    Participant
    New

    I changed average[50][1]>4000  to  average[50](volume)>400000 to make it work. still need to compare results 🙂

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

Conversion of Pullback Scan from TC2000 to PRT10.3


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
lmztrader @lmztrader Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/01/2020
Status: Active
Attachments: No files
Logo Logo
Loading...