Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Placing orders in a different Data Series.

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

    Placing orders in a different Data Series.

    Hi,

    My Strategy is set to evaluate 'On bar close'. I've added a 1 tick data Series to this strategy, for accuracy during Playback.

    Is it possible to use this tick series to place all orders, manage stops, especially (once I can figure it out) trailing stops? In other words, is it possible to evaluate conditions at the close of each bar of the main data series, but place the orders on tick series? Can this be done using Strategy Builder?

    I have a feeling this will involve unlocking the code and changing ninjascript. Still, I would appreciate the pointers. Thanks!

    RK

    #2
    Hi RK, thanks for posting. It would require the script to be unlocked because you need to be able to run code within a condition block when BarsInProgress == 1 (0 is the primary series and 1 is the second series). The strategy builder will only run code when BarsInProgress == 0. We have an example here that shows how you can separate OnBarClose logic from OnEachTick logic by using the IsFirstTickOfBar property:



    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 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
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X