Coder Social home page Coder Social logo

reinelmp / ninjatrader-automated-trading-strategy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ayb/ninjatrader-automated-trading-strategy

0.0 0.0 0.0 162 KB

NinjaTrader 8 fully automated trading strategy with target and trailing stop

License: MIT License

C# 100.00%

ninjatrader-automated-trading-strategy's Introduction

NinjaTrader Automated Trading Strategy

Inside Bar Breakout Signals

Inside Bar

About

Inside bars are formed when the current bar does not close above or below the previous bar. This strategy identifies inside bars and sends buy or sell orders if price breaks above or below the inside bar. It is fully automated, meaning it will send an order to open a position and immediately send a target limit and stop order to close the position based on Average True Range. Additionally, the stop order will move as price moves in your direction. The script is written to use on a micro futures chart (/MES, /MNQ, /MYM, etc) but imports the mini futures data (/ES, /NQ, /YM) and uses data from the mini futures to signal a buy/sell order on the micro futures.

How To Use

  1. Open Ninjatrader

  2. From the Control Center, select New, Ninjascript Editor

  3. Press +, select New Strategy, press Next, name it 'InsideBar', press Generate

  4. Paste the code from inside_bar.cs in the NinjaScript Editor window, Save and Compile

  5. From the Control Center, select New, Chart, Instrument: /MES

  6. Righ-click the chart, select Strategies

  7. Add the 'InsideBar' strategy, make sure Account = SIM, press OK

  8. From the Control Center, press the Enabled checkbox to activate the strategy

DO NOT USE REAL MONEY TO TRADE THIS STRATEGY. THERE IS ABSOLUTELY NO GUARANTEE THIS STRATEGY WORKS.

DISCLAIMER: When looking at the strategy on a chart, past occurances will appear to trigger at the close of the signal bar. This is just how Ninjatrader displays strategies in the past. However, live signals will be taken on the break of an inside bar. Additionally, some past signals may not show on the chart due to the signal bar 'failing' and reversing back across it's signal. This is not a holy grail. It is simply meant to be a template to help get you started with an automated strategy. From here, you can find your own strategy to replace the inside bar signals.

ninjatrader-automated-trading-strategy's People

Contributors

iniguezdj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.