Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rising/Falling Strategy

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

    Rising/Falling Strategy

    Hi, I'm trying to use the NinjaScript building tool to develop a strategy based off of Rising/Falling signals where it would enter a position based on a signal, hit a profit target and then wait until the next signal in the opposite direction to open a new position.

    The trouble I"m having is figuring out a way to have it wait until the opposite signal comes into play before entering the second position. Right now, as it enters the first position, it hits a profit target, and then goes back into a position of that same direction instead of waiting for the opposite signal to enter the second position.

    I might not be explaining this well, so please let me know if you have any questions.

    Thanks.

    #2
    Hello Syrinxgroup, you would need to work with user variables / bool flags in your code to ensure the strategy only takes the opposite signal as next possible signal - http://www.ninjatrader.com/support/f...ad.php?t=15417

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X