Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Consecutive losing trades

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

    Consecutive losing trades

    Using Wizard, I would like to build a strategy to tell the script to "quit" trading after so many consecutive losers during a trading day? To date I have not been able to figure this out.

    #2
    hello NFT-Trader,

    to determine if the last trade was a losing trade, you could take a look at the image I posted in post#3 in the following thread: http://www.ninjatrader.com/support/f...ad.php?t=51783

    Problem you'll run into is that in the Wizard it is currently impossible to add or substract variables from each other, so the actual counting of consecutive losers will not be possible.

    Maybe someone else knows a workaround for this by for example loading the SUM indicator with 2 variables so the output will give the summation of these 2 ?

    Marco

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mathias79, Yesterday, 03:44 PM
    1 response
    21 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Board game geek, Today, 01:34 AM
    1 response
    148 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by cencored, 03-31-2016, 05:09 PM
    9 responses
    2,455 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Human#102, 05-08-2024, 09:54 AM
    3 responses
    16 views
    0 likes
    Last Post Human#102  
    Started by ETFVoyageur, Today, 06:11 AM
    0 responses
    5 views
    0 likes
    Last Post ETFVoyageur  
    Working...
    X