Help coding – Ichimoku Strategy

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #139584 quote
    boonet
    Participant
    Senior

    There are many ichimoku strategies, indicators and screeners around, but none of them aren’t accurately taking the entry because of them ignoring what the lagging span ( Chikou) is doing.

    I think Chikou is very important to avoid fakeouts

    It would be great if someone can help me code this strategy –

    BUY Long, if

    1. Price is above kumo cloud
    2. kumo cloud is green(bullish) ahead
    3. tenkan > kinjun
    4. lagging span(chikou) rises over the cloud

    SELL Short, if

    exact opposite of Buy long

    Stop Loss,

    Set if below lowest point of last 5 candles

     

    Thanks in advance. 🙂

    #139589 quote
    brunodavid
    Participant
    Average

    Boonet,

     

    i agree, the position of the chikou is important.

    you want to open position when the chikou crosses out from kumo ?

    i first code this indicator to check your condition.

    is that this code matches your request ?

     

    INDICATEUR = 0
    Tenkansen1 = (highest[9](high)+lowest[9](low))/2
    Kijunsen1 = (highest[26](high)+lowest[26](low))/2
    SSpanA = (tenkansen1[26]+kijunsen1[26])/2
    SSpanB = (highest[52](high[26])+lowest[52](low[26]))/2
    Chikou = close // 26 périodes auparavant
    
    // BUY
    C1b = SSpanA > SSpanB
    C2b = Kijunsen1 > SSpanA and Kijunsen1 > SSpanB
    C3b = Tenkansen1 > Kijunsen1
    C4b = Chikou crosses over SSpanA[26]
    IF C1b and C2b and C3b and C4b THEN
    INDICATEUR = 1
    ENDIF
    // Short
    C1s = SSpanA < SSpanB
    C2s = Kijunsen1 < SSpanA and Kijunsen1 < SSpanB
    C3s = Tenkansen1 < SSpanA and Tenkansen1 < SSpanB
    C4s = Chikou crosses under SSpanB[26]
    IF C1s and C2s and C3s and C4s THEN
    INDICATEUR = -1
    ENDIF
    return indicateur as "indicateur"
    boonet and Nicolas thanked this post
    #139590 quote
    deleted23092025
    Participant
    New

    I think you also should look at chikou greater than close also for short example on 1-x bars meaning its a downtrend/uptrend if close greater than chikou. You can also work with MTF to add other indicators for bigger tf.

    #139594 quote
    boonet
    Participant
    Senior

    Thanks a lot @brunodavid,

    Exactly what I wanted. 🙂

     


    @Franco
    , yes running it on MTF is the plan. I will let you know how it goes.

     

    Thanks again @brunodavid.

    #139613 quote
    deleted23092025
    Participant
    New

    Boonet if you have something that i can work on tell me.

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

Help coding – Ichimoku Strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
boonet @boonet Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/18/2020
Status: Active
Attachments: No files
Logo Logo
Loading...