Modifica indicatore Ichimoku follow pattern

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #243258 quote
    Msport71Msport71
    Participant
    Senior

    Buongiorno,

     

    vorrei chiedere cortese modifica del seguente indicatore ; mi servirebbe cambiare il pattern 4 ( cross tenkan kijun) associando al cross tenkan <kijun  il colore rosso dell’istogramma e il colore

    verde in caso di cross Tenkan> kijun.

     

    Grazie per l’aiuto

    // Ichimoku Follow Patterns | Oscillator
    // 21/04/2019 (Release 1.0)
    // Swapping @ http://www.forexswap.fr
    // Sharing ProRealTime knowledge (alt+16)

    // — Property settings
    //Katana = 1 //(1=true, 0=false)
    //Daisho = 1 //(1=true, 0=false)
    //Twist = 1 //(1=true, 0=false)
    //TenKij = 1 //(1=true, 0=false)
    // — end

    Tenkansen1 = (highest[9](high)+lowest[9](low))/2
    Kijunsen1 = (highest[26](high)+lowest[26](low))/2
    SenkouSA = (Tenkansen1[26]+Kijunsen1[26])/2
    SenkouSB = (highest[52](High[26])+lowest[52](Low[26]))/2

    if katana then
    Pattern1 = summation[2](Tenkansen1 = Kijunsen1) = 2 // Katana (2 candles follower)
    endif
    if daisho then
    Pattern2 = summation[3](Tenkansen1 = Kijunsen1) = 3 // Daisho (3 candles follower)
    endif
    if twist then
    Pattern3 = SenkouSA crosses over SenkouSB or SenkouSA crosses under SenkouSB // Twist crossing
    endif
    if tenkij then
    Pattern4 = Tenkansen1 crosses over Kijunsen1 or Tenkansen1 crosses under Kijunsen1 // Tenkan crossing Kijun
    endif

    if close > close[1] then // Katana bullish green
    r = 0
    g = 180
    else // Katana bearish red
    r = 180
    g = 0
    endif

    return Pattern1/1 coloured(r,g,0) style(histogram,1) as”Katana”, Pattern2/1.75 coloured(250,160,0) style(histogram,1)as”Daisho”, Pattern3/2 coloured(0,160,250) style(histogram,1) as”Twist”, Pattern4/-1.75 coloured(240,0,240) style(histogram,1) as”Ten/Kij”

    #243282 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Ecco:

    // Ichimoku Follow Patterns | Oscillator
    // 21/04/2019 (Release 1.0)
    // Swapping @ http://www.forexswap.fr
    // Sharing ProRealTime knowledge (alt+16)
    
    // — Property settings
    Katana = 1 //(1=true, 0=false)
    Daisho = 1 //(1=true, 0=false)
    Twist = 1 //(1=true, 0=false)
    TenKij = 1 //(1=true, 0=false)
    // — end
    
    Tenkansen1 = (highest[9](high)+lowest[9](low))/2
    Kijunsen1 = (highest[26](high)+lowest[26](low))/2
    SenkouSA = (Tenkansen1[26]+Kijunsen1[26])/2
    SenkouSB = (highest[52](High[26])+lowest[52](Low[26]))/2
    
    if katana then
    Pattern1 = summation[2](Tenkansen1 = Kijunsen1) = 2 // Katana (2 candles follower)
    endif
    if daisho then
    Pattern2 = summation[3](Tenkansen1 = Kijunsen1) = 3 // Daisho (3 candles follower)
    endif
    if twist then
    Pattern3 = SenkouSA crosses over SenkouSB or SenkouSA crosses under SenkouSB // Twist crossing
    endif
    if tenkij then
    Pattern4 = Tenkansen1 crosses over Kijunsen1 or Tenkansen1 crosses under Kijunsen1 // Tenkan crossing Kijun
    if Tenkansen1 crosses over Kijunsen1 then
    r1=255
    g1=0
    elsif Tenkansen1 crosses under Kijunsen1 then
    r1=0
    g1=255
    endif
    endif
    
    if close > close[1] then // Katana bullish green
    r = 0
    g = 180
    else // Katana bearish red
    r = 180
    g = 0
    endif
    
    return Pattern1/1 coloured(r,g,0) style(histogram,1) as"Katana", Pattern2/1.75 coloured(250,160,0) style(histogram,1)as"Daisho", Pattern3/2 coloured(0,160,250) style(histogram,1) as"Twist", Pattern4/-1.75 coloured(r1,g1,0) style(histogram,1) as"Ten/Kij"
    Msport71 thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Modifica indicatore Ichimoku follow pattern


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Msport71 @carlo-pasca Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 01/31/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...