Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Storing a Bool Flag
Collapse
X
-
-
Yes you are correct. I will have to play with this, never even thought of the two variables. This seems straight forward, but I would like to know the logic behind it, please.Originally posted by NinjaTrader_ChelseaB View PostHi Hammerhorn,
To clarify, when an order is entered the longTrades bool is changed to false. At that point the you would not like the bool reset to true until the indicator value drops below Close[0] price and the rises above it once again. Is this correct?
For this you will need two variables. I have modified the sample I have created to show this.
Let me know if this is still not what you are looking for.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
596 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
554 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment