Indicator to screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #89634 quote
    eisi
    Participant
    Average

    robertogozzi wrote that code. thank u again.

    can anybody please help me this code turn into a screener. i want to see a signal ALL THE TIME. so if the indicator turns green in the screener it should be shown as a long signal all the time until it turns red (short). not only when it turns green. then again it should in the screener be  shown as short until it turns again.

    thank u in anvance

    ONCE Red        = 0
    ONCE Green      = 0
    ONCE Blue       = 0
    ONCE Fade       = 0
    ONCE BBVal      = 20                                   //20   BB periods
    ONCE BBdev      = 2.0                                  //2.0  BB Deviation
    BBavg           = Average[BBval,0](close)              //BB mean (middle line)   0=sma
    BollUP          = BBavg + ((std[BBval](close)) * BBdev)//Bollinger Upper Band
    BollDN          = BBavg - ((std[BBval](close)) * BBdev)//Bollinger Lower Band
    IF close >= BollUP THEN
       Red   = 0
       Green = 255
       Blue  = 0
       Fade  = 32
    ELSIF close <= BollDN THEN
       Red   = 255
       Green = 0
       Blue  = 0
       Fade  = 32
    ENDIF
    BackgroundColor(Red,Green,Blue,Fade)
    RETURN
    #89639 quote
    robertogozzi
    Moderator
    Master

    There you go:

    ONCE BBVal      = 20                                   //20   BB periods
    ONCE BBdev      = 2.0                                  //2.0  BB Deviation
    BBavg           = Average[BBval,0](close)              //BB mean (middle line)   0=sma
    BollUP          = BBavg + ((std[BBval](close)) * BBdev)//Bollinger Upper Band
    BollDN          = BBavg - ((std[BBval](close)) * BBdev)//Bollinger Lower Band
    IF close >= BollUP THEN
       Result = 1
    ELSIF close <= BollDN THEN
       Result = 2
    ENDIF
    SCREENER[Result] (Result AS "1=Up/2=Dn")
    eisi thanked this post
    #89640 quote
    eisi
    Participant
    Average

    that was quick

    mille grazie roberto

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

Indicator to screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
eisi @eisi Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by eisi
7 years, 1 month ago.

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