I've searched all throughout the NT help guide, but I can't find anything. And I'm used to MT4, so this is all new to me. My guess is that I could somehow use BarsSinceEntry [0] and then using that value to build the condition.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Finding close price of previous entry
Collapse
X
-
Finding close price of previous entry
Essentially, I am trying to make a condition where close [0] > close [previous entry]
I've searched all throughout the NT help guide, but I can't find anything. And I'm used to MT4, so this is all new to me. My guess is that I could somehow use BarsSinceEntry [0] and then using that value to build the condition.Tags: None
-
Hello Jeddy197,
Welcome to the NinjaTrader Support Forums!
Yes, that would be correct that you may use the BarsSinceEntry() method to be able to get the Close price of the bar when you entered.
You could also save the "CurrentBar" value to a variable to so that you can get the bar value as well.
Happy to be of further assistance.JCNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
21 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
30 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
||
Started by catinabag, 04-13-2023, 05:46 AM
|
34 responses
1,460 views
0 likes
|
Last Post
by mcosta72
Today, 04:44 PM
|
||
Started by adeelshahzad, Today, 11:49 AM
|
6 responses
23 views
0 likes
|
Last Post
by mcosta72
Today, 04:35 PM
|
||
Started by sidlercom80, 05-05-2020, 07:20 AM
|
4 responses
304 views
0 likes
|
Last Post
by Bidder
Today, 04:35 PM
|
Comment