Topics
Replies

alexbourret09
16 Sep 2020, 03:17

RE:

Update: While typing this I figured something out, would the result be affected because the TP and SL are based on the bot initial configuration? If not, follow with that haha:

 

Well, when I setup the bot in two different timeframes, backtesting gives me 2 different results. I only have this stochastic indicator running and nothing else.

From what I understand, the results should remain the same whatever the bot is initially setup in.

Ex:

I setup the bot for H4 and Stochastic for H1, backtesting gives me result X.

I setup the bot for H1 and Stochastic for H1, backtesting gives me result Y.

 

The goal I want eventually is to have some indicators being followed in different timeframes, but from what I understand, the whole thing changes when the bot have a different initial timeframe. That's where I might misunderstand the multi timeframe concept.

 

 

PanagiotisCharalampous said:

Hi alexbourret09,

but the thing is that the Stochastic is not taking the data from the other timeframe.

Why do you think so?

Best Regards,

Panagiotis 

Join us on Telegram

 


@alexbourret09

alexbourret09
15 Sep 2020, 01:14

RE:

This fixed the error thank you, but the thing is that the Stochastic is not taking the data from the other timeframe.

Let's say the bot is initially setup to H2 to validate most of the indicators on H2 but I want it to validate the Stochastic on H1. Would it be the right way to proceed with GetBars? Unless I'm misunderstanding the feature itself.

Thank you again.

 

PanagiotisCharalampous said:

Hi alexbourret09,

Here is the correct code

            h1 = MarketData.GetBars(TimeFrame.Hour);

            stochastic = Indicators.StochasticOscillator(h1, kPeriods, kSlowing, dPeriods, maType);

Best Regards,

Panagiotis 

Join us on Telegram

 


@alexbourret09