This free NinjaScript strategy will store the last 10 changes in the bid/ask price in a list. You can use this in many ways, e.g. exit position if the first one or two level changes move against you. This is more granular and can tell you more than tracking the last 10 changes in the last traded price.
The way we check for a level change is if the bid price OR ask price has changed. You can easily make it AND instead of OR if you like. Whenever the bid or ask changes it is stored in a list that is 10 items long. Index 0 of the list represents the first level change after your position exists, index 1 represents the second level change etc.
Created By | algotrading |
NinjaTrader Version | 8 |
File Size | 1.7 KB |
Create Date | 08/01/2018 |
# of Downloads | 357 |
Importing to NinjaTrader 8 is Easy!
To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:
- Download the app or add-on file to your desktop
- From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
- Select the downloaded file from your desktop
Questions?
Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.