vorrei uno screener che che mi avvisa dei cambi di colore del supertrend grazie

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #246155 quote
    ACHILLE2
    Participant
    New

    vorrei uno screener che che mi avvisa dei cambi di colore del supertrend grazie

    #246204 quote
    Iván González
    Moderator
    Master

    ecco:

    //------------------------------------------//
    //PRC_SuperTrend
    //www.prorealcode.com
    //Sharing ProRealTime knowledge
    //------------------------------------------//
    //-----Inputs-------------------------------//
    //------------------------------------------//
    periods = 10 //ATR period
    multiplier = 3 //ATR multiplier
    //------------------------------------------//
    //----SuperTrend Calculation----------------//
    //------------------------------------------//
    atr = averagetruerange[periods](close)
    up = high - multiplier*atr
    up1 = up[1]
    if close[1] > up1 then
    up = max(up,up1)
    else
    up = up
    endif
    
    dn = low + multiplier*atr
    dn1 = dn[1]
    if close[1] < dn1 then
    dn = min(dn,dn1)
    else
    dn = dn
    endif
    
    once trend = 1
    
    if trend = -1 and close > dn1 then
    trend = 1
    elsif trend = 1 and close < up1 then
    trend = -1
    else
    trend = trend
    endif
    //------------------------------------------//
    //----Buy and Sell Signals------------------//
    //------------------------------------------//
    buysignal = trend=1 and trend[1]=-1
    sellsignal = trend=-1 and trend[1]=1
    
    screener[buysignal or sellsignal](buysignal as "Buy",sellsignal as "Sell")
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

vorrei uno screener che che mi avvisa dei cambi di colore del supertrend grazie


Supporto ProScreener

New Reply
Author
author-avatar
ACHILLE2 @achille2 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván González
9 months, 2 weeks ago.

Topic Details
Forum: Supporto ProScreener
Language: Italian
Started: 04/21/2025
Status: Active
Attachments: No files
Logo Logo
Loading...