Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using the phrase "while" on 8.1
Collapse
X
-
Using the phrase "while" on 8.1
Hi, I’m trying to create a strategy that upon a trigger for a long or short entry, it will place an opposite direction entry, exit it, and then place the actual entry order. The reason why I am experimenting with this is because I’ve had success with this method when trading manually and saw far less chop in the market after placing a trade. The issue I’m having with the code (which was coded by someone else) is that upon placing the strategy on the chart, it causes the chart to freeze and show “calculating” indefinitely. The person who wrote the code has shown that it works on his chart replay, but I have not been able to get it to work for me and the strategy before was fully functional. Can you please review the code below that directly follows a long entry trigger and let me know if something is wrong with the logic or it’s possibly something else. Thank you, Kyle
Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
52 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
29 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
194 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
355 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
274 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment