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 funk10101, Today, 09:43 PM
|
0 responses
3 views
0 likes
|
Last Post
by funk10101
Today, 09:43 PM
|
||
Started by pkefal, 04-11-2024, 07:39 AM
|
11 responses
36 views
0 likes
|
Last Post
by jeronymite
Today, 09:37 PM
|
||
Started by bill2023, Yesterday, 08:51 AM
|
8 responses
44 views
0 likes
|
Last Post
by bill2023
Today, 09:27 PM
|
||
Started by yertle, Today, 08:38 AM
|
6 responses
26 views
0 likes
|
Last Post
by ryjoga
Today, 09:17 PM
|
||
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
24 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
Comment