Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using value from ^TICK Market Internal to Enter Long or Short

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

    Using value from ^TICK Market Internal to Enter Long or Short

    Hello,

    Is it possible to use the data from ^TICK to enter Long or Short within a strategy?

    For example, using /MES I have successfully added the Data Series for ^TICK, but when I try to access the data and enable the strategy the strategy does not get enabled.

    What I'm trying to do is enter a trade based on the levels of the ^TICK.

    Is this possible?

    -Omer

    #2
    Hello omermirza,

    Thank you for your post.

    It is possible to run your strategy on ^TICK data. Who is your data provider? Do they provide data for ^TICK?


    If the strategy is applied to a chart, is there data with new bars appearing on the chart the Strategy is applied to?

    Is the strategy showing as enabled on the Strategies tab of the Control Center?

    Importantly, are there errors appearing on the Log tab of the Control Center?


    Try testing the Sample MA Crossover strategy included with NinjaTrader on the same chart or Strategy Analyzer using the same instrument, bar type, interval, and date range.

    Do you see results with the Sample MA Crossover strategy? (This would confirm for us data is available and the issue is with the logic in the custom script)


    If the strategy is getting data and the strategy is enabled or a backtest is run with no errors in the Log tab of the Control Center, and the Sample MA Crossover is returning results, then would likely indicate the logic conditions in the custom strategy did not evaluate as true or orders are being ignored or cancelled.

    In order to better understand how the code is working, it will be necessary to use Print to see how the conditions are evaluating and enable TraceOrders to see if orders are being submitted, ignored, rejected, or cancelled.
    I'm also including a link to a forum post with further suggestions on debugging a script.


    Below is a link to a forum post that demonstrates using prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.


    Enable TraceOrders, print the time of the bar and all values used in the conditions that submit entry orders. Include labels for all values and comparison operators.

    Let me know if you need any assistance creating a print or enabling TraceOrders.

    Save the output from the output window to a text file and provide this with your reply.

    I'll be happy to assist with analyzing the output.​

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    38 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X