MTF on stochastic

Forums ProRealTime English forum ProOrder support MTF on stochastic

Viewing 5 posts - 1 through 5 (of 5 total)
  • #232768

    Hi,

     

    Need some help.

     

    Let´s say i want to create a Multi timeframe strategy on two different timeframes with stochastic indicator or some other one like RSI, doesn´t matter which one.

     

    Is the best way to create the indicator and include it in the strategy code or is it better/easier to use

    the CALL instruction instead to “call” for the indicator?

     

    If want a strategy like the one explained above on stochastic as an example on 1h and 15min so i better understand how things like this is coded in it´s simplest way.

     

    And then use easy rules like this.

     

    Long trades

    1.Higher timeframe (1h) is bullish, stochastic (fast line is above slow) and not overbought (above80).

    2. 15min timeframe, stochastic fast line crosses over slow line and is below oversold (below20) is when to buy.

    Reverse for short ones.

    If someone could code this I should be more then happy.

    Thanks in advance!

    #232824

    Hi!

    Here you have an example of long trades.

     

    1 user thanked author for this post.
    #233834

    Thank you @Iván !

    This make sens to me and works nice.

    When i try the same approach but with an not predifined indicator like the DTOSC for example, coded by @doctrading in the indicator library. It will not read the overbought/oversold conditions correctly for me.

    Here is a good example of what i was wondering before if it is easiest to code it as a separate indicator and then use the “call” command or to put the code for the indicator directly in the strategy code?

    https://www.prorealcode.com/prorealtime-indicators/dtosc-dynamic-trader-oscillator/

    #234810

    Anyone?

    I attached the code for the indicator.

     

    #234812

    Here you have an example:

Viewing 5 posts - 1 through 5 (of 5 total)

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