Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to place order in my strategy created from an indicator
Collapse
X
-
How to place order in my strategy created from an indicator
Hi, I just downloaded the ZombieSetup indicator from Tickhunter on the NT Ecosystem. I'm trying to convert it to a strategy and so far I have no compile errors. One problem though, I can't get it to buy or sell based on a buy or sell signal. I've tried putting entries in just about every area I can think of (eg. OnBarUpdate, inside methods/functions) but so far I can't get it to take any entries based off the buy or sell signal. Any help would be greatly appreciated. I've attached the code below (I've commented out all of the entries I've tried so far), Thanks, Derek.Tags: None
-
Hello Derek,
Thanks for your post.
Instead of converting the indicator to a strategy, you could likely consider referencing the indicator within a custom NinjaScript strategy.
That said, ff the expected trade(s) are not appearing, this would indicate that the condition to place the order is not evaluating as true or the order is being ignored for other reasons.
To understand why the script is behaving as it is, such as placing orders or not placing orders or drawing objects when expected, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.
In the strategy add prints (outside of any conditions) that print the values of every variable used in every condition that places an order along with the time of that bar.
Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).
Below is a link to a forum post that demonstrates how to use prints to understand behavior.
https://ninjatrader.com/support/foru...121#post791121
And, keep an eye on the Log tab of the Control Center to see if any errors appear when running the script.
I suggest reaching out to the developer of the indicator directly to inquire about instructions on how to use their third-party indicator within a custom NinjaScript strategy.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
44 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
125 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment