Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Trade Trigger
Collapse
X
-
Trade Trigger
If I have OnBarClose = True and Exit on Close(not sure if these matter), when I have a strategy condition for Close[0] > Highs[1][0], with the primary series being 15min and secondary being 60min, will the trade trigger on the 15min bar after the 15min bar that closes above the hourly high?Tags: None
-
Hello zachj,
Thank you for your response.
You are correct, that will not happen if it is the same instrument. If you want to check if the 15 minute bar that closes after the 60 minute bar is higher than the high of the 60 minute bar you can use Closes[0][0] > Highs[1][1].
Please let me know if I may be of further assistance.
Comment
-
Ok thanks. This is switching gears a bit but if I have one of the conditions to go long is once the fast MA crosses above the slow MA, is it possible to create another condition to only go long when a bar closes above the high of the bar where the MA cross took place?
Comment
-
Hello zachj,
Thank you for your response.
You can use MRO() to store the bars ago value of the CrossAbove condition and then use that bars ago int to check the Close against that high.
For information on MRO() please visit the following link: http://www.ninjatrader.com/support/h...urence_mro.htm
Please let me know if I may be of further assistance.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
4 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
47 views
0 likes
|
Last Post Today, 12:28 AM |
Comment