Free Break Even Trading Exit NinjaScript

$0.00

This Free Break Even Trading Exit NinjaScript will place a limit exit order at the break even price if the first tick after your order is filled goes in the adverse/wrong direction.

Overview

This Free Break Even Trading Exit NinjaScript will place a limit exit order at the break even price if the first tick after your order is filled goes in the adverse/wrong direction.

This Break Even NinjaScript add-on is not assembled which means you have full access to view and change the source code either in NinjaScript Editor or your preferred way to edit .cs files.

Details / Instructions

Calculate must be set to on each tick.

If you paste this exit logic into your own code, make sure your entries have a signal name that the exits reference. In this case they’re called “long” and “short”.

An example use case for the Free Break Even Trading Exit NinjaScript would be to exit your position at break-even if the very first change in bid or ask is in the opposite direction of your trade direction, e.g. if you open a sell position at $101 then the ask moves from $101 to $102 while the bid stays at $99, you can take this as a sign that the trading price is more inclined to move up rather than down. The code in this download is built off of our Free Bid Ask Change NinjaScript.

Notes

The Free Break Even NinjaScript download is a single zip file that you import directly into NinjaTrader.

This code will not work with releases prior to NinjaTrader 8.

Got something to discuss?