PDA

View Full Version : How can I do that?


cozar534
03-16-2009, 02:10 PM
I want to enter long position if MACD (MACD) in a 60 minutes time frame is over MACD (Avg) and Stochastics(K) is below 20 in a 10 minutes time frame, and the other position as well.
I tried it implementing the Samplemultitimeframe provided with an Strategy I created with the wizard.. does it have any error? I don`t understand the results viewed in the chart after backtesting it

NinjaTrader_Josh
03-16-2009, 02:17 PM
cozar534,

You can't chart MACD of 60 minutes onto the 20 minute chart. The MACD you are viewing on the chart is actually the MACD of the 20 minute bar series which is not what you are basing your trade conditions on. This may be where your confusion is stemming from.

cozar534
03-16-2009, 02:25 PM
ok, but the results of the backtest are the real ones?

NinjaTrader_Josh
03-16-2009, 02:34 PM
That is correct.

cozar534
03-16-2009, 02:41 PM
and how is that possible? at the end of the chart (for ex.) and in more parts, the macd is below the macd. avg, and the strategy gives an enter long order where it's supposed not to do that!

NinjaTrader_Josh
03-16-2009, 03:23 PM
cozar534,

As already stated, you can't chart something from 60 minutes onto a 20 minute chart and read the signals the same. It is just not the same data. All the data points are wrong and all the values are different.

If you want to see what the MACD is on a 60 minute chart, open up a 60 minute chart and correlate time on the 60 minute with time on the 20 minute.