MTF conversion

Viewing 6 posts - 1 through 6 (of 6 total)
  • #95708

    Hi everyone,

    Since MTF is not working in real trading, I am trying to replace part of the code with a different non-default timeframe.

    The default timeframe is 15 min, and I would like to adapt the 1 hour timeframe part of the code to 15′. I wonder if any of you guys have a solution for this:

    I would like to convert this into 15′. I would start by multiplying the ratio by 4 and recreating the candles (open and close) and their periods, but in case anyone has solved or has a quick formula, I would greatly appreciate it.

    Thanks in advance,

    Juan

     

     

    #95714

    You could define a 1-hour bar  on a 15-minute TF by combining the last 4 bars:

    This indicator shows, on a 15-minute TF, the whole 1-h candle, but it should be refined to show doji’s when 1-hour is a dojy and so forth….

    If this can be what you are looking for, then I may further work on it.

     

    #95724

    This is much better:

    You will define HA candles for the 15-minute TF as usual, while for the 1-h TF you’ll need to write:

     

    #95726

    When you refer to a previous 15-minute HA candle you will use [1], [2],… while for 1-hour candles you’ll need to multiply the number in brackets by 4.

    1 user thanked author for this post.
    #95730

    Thanks so much Roberto,

    It is perfect. I was working on something but nothing compared to your idea..

    Muchas gracias,

    Juan

     

    #95784

    The code to access 1-hour bars should be:

     

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login