Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

One entry per bar

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

    One entry per bar

    Hello,

    I want to trade via ninjascript using the MACD with calculation
    on every tick (calculate on bar close = false). But i don't want it
    to execute more than one time per bar and make a bunch of trades
    and rack up commissons. Anyone knows what the code would be?

    Vance

    #2
    Hello,

    One way you can do this is with BarSinceEntry(). Here is a link that will help:
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    91 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    66 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X