Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Can I insert a MultiTimeFrame Strategy into a chart?
Collapse
X
-
Josh, can you check the script and tell me if it's what I really want, please?? the Strategy should be (what I want it to do):
If MACD on a 15min chart (that's BarArray[2]) is over MACD.Avg
AND Stochastic on a 3min chart (BarArray[1] and also the chart I want to run the strategy in), is below 20
then open Long position
If MACD on a 15min chart (that's BarArray[2]) is over MACD.Avg
AND Stochastic on a 3min chart (BarArray[1] and also the chart I want to run the strategy in), is above 80
then open Short position
If CurrentMarket Position is Long
AND EMA(10) CrossBelow EMA(18)
then Exit Long Position
If CurrentMarket Position is Short
AND EMA(10) CrossAbove EMA(18)
then Exit Short Position
Comment
-
cozar534,
Unfortunately I cannot debug the code for you. You will just have to step through it slowly and print out where it is trading and why it evaluated those conditions to true on the chart, but not in the Strategy Analyzer.
Please absolutely ensure your chart starts at the same date and time as your Strategy Analyzer. It is very important this is the case as well as you having the exact same data set when you ran it on the chart and when you ran it in the Strategy Analyzer. Please download your data from your data provider and then disconnect. Connect up to the External Data Feed so you can add the strategy to the chart, but without ever having the possibility of fetching data from your provider again. That will ensure you have the same data set.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by JoMoon2024, Today, 06:56 AM
|
0 responses
6 views
0 likes
|
Last Post
by JoMoon2024
Today, 06:56 AM
|
||
Started by Haiasi, 04-25-2024, 06:53 PM
|
2 responses
17 views
0 likes
|
Last Post
by Massinisa
Today, 05:32 AM
|
||
Started by Creamers, Today, 05:32 AM
|
0 responses
6 views
0 likes
|
Last Post
by Creamers
Today, 05:32 AM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
12 responses
1,786 views
0 likes
|
Last Post
by Leafcutter
Today, 05:30 AM
|
||
Started by poplagelu, Today, 05:00 AM
|
0 responses
3 views
0 likes
|
Last Post
by poplagelu
Today, 05:00 AM
|
Comment