Adding condition from another timeframe

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #84713 quote
    MertMert
    Participant
    Average

    Hello,

    I am trading a 1 minute chart where I have coded a few set ups. I want to add a condition to the set up but this condition comes from a 15 minute timeframe. For example:

     

    The first condition should be a higher low in the 15 minute candle chart. (a 15 minute candle low(candle[2]) followed by another 15 minute low (candle[1]) and than a 15 minute higher low. I know how to code it in a 15 minute chart but i can not figure out how to ad this condition to a code written on a 1 minute candle.

    Can someone help me out here?

    Thanks in advance. If something is not clear please let me know. I will than try to explain it clearer.

     

    Regards,

     

    Mert

    #84718 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    ProBuilder does not support Multiple Time Frames. At present only ProScreener and ProOrder do.

    #84719 quote
    MertMert
    Participant
    Average

    Oh. Well, that is a pity than.

     

    Thanks anyway

    #84773 quote
    NicolasNicolas
    Keymaster
    Legend

    But you can still use ProBacktest with GRAPH Instructions to simulate an indicator, example in this blog article: First approach to multi timeframe trading with ProRealTime

    robertogozzi thanked this post
    #84875 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    @Mert If I understood your condition (I assumed you meant the middle candle low is the lowest of all 3 lows but maybe I’m wrong and you meant the latest low is higher than the middle one regardless of [2] and [1] relative positions), the short code below should do, in which check2 is your 15 minutes condition simulated on your 1 minute timeframe.

    The return line here is just to make it appear as a standalone to check it’s ok, just get rid of the return line to insert it as a condition inside your pro-builder code run on 1 minute timeframe. And obviously replace all check2 mentions with your condition’s name if it had one already.

    // Noobywan 2018-11-14 for PRC forum
    // To be run on 1 minute timeframe only, emulating a 15 minutes condition
    //
    a=lowest[15](low)
    check1 = a[15]<a and a[15]<=a[30] //the condition on past 3x15=45 minutes for any ongoing minute
    
    check2=0
    if check1 and (openminute=59 or openminute=14 or openminute=29 or openminute=44) then // only keep the condition for 1 minute candles closing at same time as 15 minutes candles
       check2=1
    endif
    
    return check1 as "check1", check2 as "check2"
    Nicolas thanked this post
Viewing 5 posts - 1 through 5 (of 5 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

Adding condition from another timeframe


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Mert @mert Participant
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by JC_BywanJC_Bywan
7 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 11/12/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...