Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to place order in my strategy created from an indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.
    Attached Files

    #2
    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>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X