Ichimoku Cloud Cross Strategy

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20148 quote
    Bolu14Bolu14
    Participant
    New

    Hello everybody,

    i have a question. I try to code a Ichimoku Trading system.

    The Signal should generated, if the SenkouSpanA and SenkouSpanB crosses each other.

    If i do this in PRT, so i get only the Value of the SenkouSpanA and B from the actual bar. But you know, that the cloud is generated 26 Bars in future.

    I can choose bars in Past during i put the numbers of bar in ( ) or [ ] brackets, but how can i do this with bars in the future.

    In some other Tradingtools, this Value is named as SenkouSpanA Predicted, so it means not the Value of the actual bar, it means the Value in Future.

    To imagine, what i want, i make a screenshot from an other Tool.

    I hope you will understand.

    Thanks.

    btw.
    I am an PRT professional User (relation to coding service)

    Ichimoku-CrossOver.jpg Ichimoku-CrossOver.jpg
    #20177 quote
    NicolasNicolas
    Keymaster
    Legend

    The Future SpanA and SpanB are nothing more than the actual value of the ichimoku cloud, not the cloud from 26 periods ago.

    So to get their values, the solution is to delete to [26] periods of the traditional calculation of the cloud:

    “normal” cloud (drawn on present candlestick and made of values 26 period ago)

    SpanA = (tenkansen[26]+kijunsen[26])/2
    SpanB = (highest[52](high[26])+lowest[52](low[26]))/2

    “future” cloud (drawn 26 periods to the right of the present candlestick)

    FutureSpanA = (tenkansen+kijunsen)/2
    FutureSpanB = (highest[52](high)+lowest[52](low))/2

     

    Thanks to the Rohan’s code: https://www.prorealcode.com/prorealtime-indicators/ichimoku-trend-or-range/

    #20245 quote
    Bolu14Bolu14
    Participant
    New

    Thank you. It is the right code.

    Unfortunately the results are not as expected. 🙁

    Thanks again.

    Good work.

Viewing 3 posts - 1 through 3 (of 3 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

Ichimoku Cloud Cross Strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Bolu14 @bolu14 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Bolu14Bolu14
9 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/08/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...