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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X