NinjaTrader Algo Trading StrategiesBest practices for NinjaTrader Algotrading with indicators and strategies.... Topics include algograding with Futures, Crypto, Forex, and equities/stocks. How do you backtest / optimize strategies with NinjaTrader? You have come to the right place!https://www.nashtech.xyz/Help/NashTech-TrendsCrypto Bot Strategyhttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/12/crypto-bot-strategybacktestingCrypto,NinjaTrader StrategyFri, 10 Sep 2021 19:27:35 GMT<p>I was recently researching specific algo bots for crypto and came across an interesting setup on YouTube…  The setup seems pretty popular and does backtest out pretty well so I decided to develop a free crypto bot for NinjaTrader and offer it to the algo community! </p> <p>The video that I based the algo bot on is below (Note: we are not affiliated in any way with this organization or content, just providing some backstory as to what the setup is based on). <a href="https://youtu.be/xbAQR1e1XY8">https://youtu.be/xbAQR1e1XY8</a></p> <p><iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/xbAQR1e1XY8" title="YouTube video player" width="560"></iframe></p> <p><strong>The basics for the setup...</strong></p> <ol> <li>Add the SSL Channel indicator to a one hour chart … Determine the direction from this (I have included a free NinjaTrader SSL Channel indicator in the download / install). The default settings of “10” are ok for the SSL Channel Period but you can change these in the bot if you desire. </li> <li>Add an EMA indicator to a smaller timeframe chart (from his video, a 5 minute chart).  For the setup g from this video he is using a 50 EMA, however you can adjust this within the crypto bot strategy to be any EMA you want. </li> <li>Wait for the price on the 5 minute chart to be below the EMA for long entries, or above for short entries (you can choose to have it crossing or below within crypto bot strategy setup). </li> <li> Choose from any bullish or bearish setups for your entry… Within the video he is going with a Engulfing pattern for entry however in the <a href="#LiveContent[CryptoBot_EntryParameters]">Crypto Bot Strategy</a> you can choose from any of these setups for entry:</li> </ol> <p style="margin-left: 40px;">a.   Engulfing<br /> b.   Harami<br /> c.   Harami Cross<br /> d.   Belthold<br /> e.   Hammer<br /> f.    Hanging Man<br /> g.   Morning / Evening Star<br /> h.   Rising / Falling Three<br /> i.    Three Soldiers / Crows<br /> j.    Piercing Line<br /> k.   Upside Gap Two Crows<br /> l.    Downside TasukiGap<br /> m.  Dark Cloud Cover</p> <p style="margin-left: 40px;"><strong></strong></p> <p><strong>Crypto Bot Strategy (Download Free Below!) </strong></p> <p><a href="#LiveContent[CryptoBot_StratAnalyzer]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=11&PortalId=0" /></a> </p> <p>I ended up adding several features to the strategy which can provide optional settings... </p> <ul> <li> A minute interval for the higher timeframe (default is 60) </li> <li>Change several other inputs such as the SSL Channel period, EMA, and multiple entry inputs. </li> <li>Trailing stop loss </li> <li>Display the upper TF on the lower TF chart (with this you don't really need to ever pull up the upper TF SSL Channel). </li> <li>Highlight unusual volume (either very minimal or significant) on the chart. At the moment this is only part of the indicator and not the strategy... I am open to input on if anyone thinks these variables would be useful for integration within the strategy. </li> <li>Ability to enable the algo bot on startup, or based only after clicking a button after its enabled. Also individual buttons to manually go long, short. </li> </ul> <p><a href="#LiveContent[CryptoBot_NashTechParameters]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=13&PortalId=0" /> </a></p> <p><strong>Order Entry Options</strong></p> <p><strong></strong></p> <ul> <li>Optionally only enable long or short entries (or both!)</li> <li>Profit target can be a recent high/low, or standard ticks/currency. </li> <li>Stop loss can be trailing or static number of ticks/currency.</li> <li>Ability to set stop loss to break even after "X" number of bars.</li> <li>Take profit / exit position after "X" number of bars in your direction.</li> <li>Exit reverse candlestick pattern - Will exit on any reverse pattern! </li> </ul> <p><strong></strong></p> <p> <a href="#LiveContent[CryptoBot_OrderParameters]"> <img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=15&PortalId=0" /> </a></p> <p><strong>Backtesting </strong>- Below is some historical results with ETH... There are also some great results with BTC and others as well.  </p> <p><a href="#LiveContent[CryptoBot_StratAnalyzer]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=11&PortalId=0" /> </a></p> <p><a href="#LiveContent[CryptoBot_StratResults]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=12&PortalId=0" /> </a></p> <p>The file is a free download however you do need to register with us to receive the file.</p> <p><a href="https://www.nashtech.xyz/Download-Crypto-Bot"><strong>DOWNLOAD CRYPTO BOT STRATEGY FOR NINJATRADER (FREE BOT!)</strong></a></p> <p><strong></strong></p> <p>Hope this is useful for anyone! Please post comments and any feedback!</p> <p>-Chad</p> 12NinjaTrader - Strategy Analyzer Tipshttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/11/ninjatrader-strategy-analyzer-tipsEpic Collection,Epic Profits,NinjaTrader,NinjaTrader Strategy,NinjaTrader Tips,Strategy Anazlyer,Strategy OptimizationWed, 07 Jul 2021 23:54:00 GMT<style type="text/css">* { box-sizing: border-box; } .row { display: flex; } /* Create three equal columns that sits next to each other */ .column { flex: 50.00%; padding: 5px; } </style> <p>NinjaTrader strategy analyzer has many features that you don't always know until after you have worked within the interface for a while...</p> <hr /> <p><strong></strong><strong>Seven quick tips for working with NinjaTrader Strategy Analyzer... </strong></p> <p><strong>Epic Tip 1: Whenever you optimize an algo strategy, you can expand the minimum / maximum properties and type in each field, or simply type directly in the textbox. </strong></p> <p>It can take some work to go step by step through a strategies properties and setup the minimum and maximum values for optimization... but did you know you can also just type in the textbox within strategy analyzer?</p> <p style="margin-left: 40px;">Option 1: Expand the properties settings and manually enter values for minimum, maximum, and the value to increment. </p> <p style="margin-left: 40px;">Option 2: Simply type in the values without expanding. The format is min;max;increment. So to increment values from 50 to 200 in increments of 25 it would look like: 50;200;25</p> <p><img src="http://www.nashtech.xyz/Portals/0/NTImages/Blog/NinjaTrader_StrategyAnalyzerTips_AlgoDevelopment.gif?ver=POzMi9wGH12oRymKDW4hug%3d%3d&timestamp=1625702279748" /></p> <p><strong></strong></p> <p><strong></strong></p> <p><strong>Epic Tip 2: Tick Replay? Maybe not needed with </strong><b>high-fill resolution!</b></p> <p>Certain algo strategies (including most Epic Collection strategies!) are coded to take advantage of tick replay, and the strategy results can greatly benefit by enabling this feature. Within NinjaTrader, you can enable the feature under Tools, Options, Market Data, Show Tick Replay. </p> <p><a href="#LiveContent[NinjaTraderEnableTickReplay]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=1&PortalId=0" /></a></p> <p>This option will then be available within the data series when you are setting up strategies or strategy analyzer.  To learn more about how tick replay works and the advantages for enabling the feature you can check out the NinjaTrader user guide. <a href="https://ninjatrader.com/support/helpGuides/nt8/?tick_replay.htm">https://ninjatrader.com/support/helpGuides/nt8/?tick_replay.htm</a></p> <p><a href="#LiveContent[NinjaTraderTickReplayStrategyAnalyzer]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=3&PortalId=0" /></a></p> <p>Why not always enable tick replay? There is a significant performance impact! Want a better option without the need to have the major performance hit? You can specify the order fill resolution to be set to "High" and choose a value such as every minute or even every second. You might be surprised with how the results are similar to tick replay without the major performance hit. </p> <p><a href="#LiveContent[NinjaTraderStrategyAnalyzerHistoricalFill]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=4&PortalId=0" /></a></p> <p><strong></strong><strong></strong></p> <p><strong>Epic Tip 3: Strategy Analyzer Logs.</strong><strong></strong></p> <p>By default, you might not even know strategy analyzer had logs... and perhaps that's because they shouldn't even be called logs. When I first heard of the strategy analyzer logs I assumed they were referring to log files I might need to send their support team, or perhaps log files that might include errors the strategies have or a reference that I had to open up in notepad etc...  </p> <p>Well... get ready for a surprise! With all of the work and time that goes into strategy optimization, its a shame when the results just get lost if you don't export or save the results within a template.  This is where strategy logs can be helpful. </p> <p>To enable the logs, you right click within the strategy analyzer interface. You will see an option to "show logs". </p> <p><a href="#LiveContent[NinjaTraderStrategyAnalyzerLogs]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=5&PortalId=0" /></a></p> <p>Wow! Look mom... I can filter by strategy or by instrument!</p> <div class="row"> <div class="column"><a href="#LiveContent[NinjaTraderFilterByStrategy]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=6&PortalId=0" /></a></div> <div class="column"><a href="#LiveContent[NinjaTraderFilterByInstrument]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=7&PortalId=0" /></a></div> </div> <p>Oh... I can also <u>right click within the grid</u>, and open these past historical results within strategy analyzer!</p> <p><a href="#LiveContent[NinjaTraderOpenStrategyFromLog]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=8&PortalId=0" /></a></p> <p>From here you can research all of your past strategies and optimization results... You can "pin" them, and enable features within the "properties" section of Strategy Analyzer to show columns such as the profit factor, or button to view and open the strategy. </p> <p><strong></strong></p> <p><strong></strong><strong>Epic Tip 4: Save templates to move between workstations.</strong><strong></strong></p> <p>When moving between development and production environments, it can be extremely helpful to save templates. Saving templates within strategy analyzer is easy...  in the bottom right you will see a "Templates" menu item, where you can click it to open, or save templates. These can then be retrieved when you want to go and enable a strategy within the strategies tab of NinjaTrader, or within the strategies interface within NinjaTrader charts. </p> <p>So how do you move them from one work station to another? Easy... simply zip up/compress the folders under your templates folder, copy them to the other system, and unzip them.  Typically this directory is here: \Documents\NinjaTrader 8\templates\Strategy folder. </p> <p>We provide a full video that covers this process, including how to take advantage of optimized templates we provide for the best NinjaTrader strategies. </p> <p>You can check out the video and download templates at<strong> <a href="http://www.nashtech.xyz/templates">http://www.nashtech.xyz/templates</a>.</strong></p> <p><strong></strong><strong></strong><strong>Epic Tip 5: Sort by your worst trades... Add other indicators to the chart to see if you could have avoided that entry. </strong></p> <p>Often times a strategy has great results and trades great except a couple bad apples that really impact the overall results. You can easily find the worst trades, navigate within the chart for those times and sometimes get a better picture for what might be happening. </p> <p>For example, many custom strategies we build for clients we often include an overall "max stop loss". This is needed for example if their normal stop loss is set to "last bar high/low", when the previous bar was so parabolic and significant that it really impacted their stop loss. </p> <p>First, navigate within Strategy Analyzer by clicking in the upper left dropdownlist, and select "Trades". Next, check out the entry time and exit time within the executions. </p> <p><a href="#LiveContent[NinjaTraderReviewTrades]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=9&PortalId=0" /></a></p> <p>Next, navigate within the "Chart" by selecting that from the dropdownlist. Navigate to that date/time of the entry and see if you can determine anything that would have helped keep you out of that trade? Sometimes this includes adding other indicators on the chart and checking their values. Most of the epic collection of strategies include features to "Opt Out" of trades if the Vortex indicator, choppiness indicator, or ADX indicator are at extreme ranges. </p> <p><a href="#LiveContent[NinjaTraderReviewBadTrades]"><img alt="" src="https://www.nashtech.xyz/DesktopModules/LiveContent/API/Image/Get?mid=744&eid=10&PortalId=0" /></a></p> <p>Oh... and if you are trading with the <a alt="best NinjaTrader Strategies" href="https://www.nashtech.xyz/NinjaTrader">best NinjaTrader strategies</a> and you find your results are just horrible? Just choose the option for trade direction and change it to "reverse" :) All the strategies within the Epic Collection include the ability to trade in reverse if the setup is optimized so poorly you want to actually trade differently. </p> <p><strong>Epic Tip 6: Backtest against multiple instruments at once, use percent and variables such as ticks rather then fixed currency.</strong></p> <p>If you discover that similar settings for your strategy work across many instruments, consider testing against many instruments at one time. How do you do this? Well first, hopefully your settings are using input variables such as percentages, ticks, pips, etc... When you have fixed currency type variables its harder to backtest against multiple instruments. Next... When you have selected to backtest or optimize within strategy analyzer, choose the instrument and instead of selecting the single instrument, choose "Select All". This is helpful also if you want to enable the strategy on live simulator accounts as it can create the strategy for each instrument rather you manually selecting each and every instrument. The results will spit out per instrument and save you a lot of time! </p> <p><strong></strong></p> <p><strong>Epic Tip 7: Take optimization sloooooowly.</strong></p> <p>Strategy optimization is powerful... but take when not used properly, it can be a waste of time. For example... what if you forget to select to trade both long and short, and you don't realize this until the optimization takes hours to run? Or after you feel comfortable with the strategy you want to test all different variables and multiple profit targets and stop losses, only to realize when you click run its going to take 70 days to complete! This can easily happen when you define too many variables, too small of increments, etc... Try adjusting the minimum and maximum on just a couple variables to make sure you don't end up with an optimization that takes days to complete! </p> <p><strong></strong></p> <p><strong></strong></p> <p><strong></strong></p> 11NinjaTrader - Wait X Bars from Last Exithttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/10/ninjatrader-wait-x-bars-from-last-exitNinjaTrader,NinjaTrader Strategy,NinjaTrader TipsWed, 07 Jul 2021 18:37:24 GMT<p><strong>Feature: Wait X Bars from Last Exit</strong></p> <p><strong>Benefits: Avoid continued entry and/or exit, possibly in market conditions that are not suitable for the trading strategy. </strong></p> <p>We code a log of NinjaTrader strategies... and we like to provide tips for other developers or traders wanting to create custom strategies for NinjaTrader. </p> <p>Sometimes the market doesn't always respond well to your algo strategy... In that situation, you want to avoid entry, often for money management and controlling your trading strategy. We use a special feature within NinjaTrader for this.</p> <p>We include this feature within all of the Epic NinjaTrader Indicators and strategies but you can reference the same code below:</p> <p><strong>Within OnStateChange()</strong></p> <hr /> <p>BarsRequiredBeforeReEntry = 5;</p> <p> </p> <p><strong>Within Properties:</strong></p> <hr /> <p>[NinjaScriptProperty]<br /> [Display(Name = "Bars Required Before ReEntry", Order = 1, GroupName = "NashTech Order Entry")]<br /> public int BarsRequiredBeforeReEntry<br />  { get; set; }</p> <p><strong>Within OnBarUpdate:</strong><strong></strong></p> <hr /> <div> <p>int BarsSinceExit;<br /> BarsSinceExit = 0; </p> </div> <p> if (BarsSinceExitExecution() != -1)<br />                 {</p> <p>        BarsSinceExit = BarsSinceExitExecution();<br />            <br />                     if (BarsSinceExit < BarsRequiredBeforeReEntry)<br />                     {<br />                         if (EnableDebugMode == true)<br />                         {<br />                             Print("We should only be here if bars required before re-entry is less than bars since exit");<br />                             Print("Bars Since Exit Execution:" + BarsSinceExit);<br />                             Print("Required Before ReEntry:" + BarsRequiredBeforeReEntry);<br />                             Print("Time of Skipping order:" + Time[0]);<br />                         }<br />                     <br />                         BarBrushes[0] = PendingBrush;</p> <p>                        return;<br />                     }</p> <p>                }</p> <p> </p> <p> </p> <p>Questions? Leave a comment! </p> <p> </p> <p>-Chad</p> <p><span style="font-size:11pt"><span style="font-family:Calibri,sans-serif">All subscribers and lifetime license users get the latest templates to install based on our weekly optimization results. If there is an instrument you want the most recent template for, just ask! For trial users all templates are about 30 days old. </span></span></p> 10NinjaTrader Strategy - WaitXBarsFromNewTradingDayhttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/9/ninjatrader-strategy-waitxbarsfromnewtradingdayFutures,General,MNQ,NinjaTrader,NinjaTrader TipsMon, 28 Jun 2021 02:01:48 GMT<p>Often we get requests to help with Ninjascript / NinjaTrader 8 indicators and strategies that do not always fit within our required work for engagement... This does not mean we don't want to be helpful! We always encourage algo trading and want to help novices and customers alike with best practices. We will continue to work on videos but are also planning weekly videos on best practices. </p> <p>Within each of our custom NinjaTrader straegies we often include some basic setup configurations... These include:</p> <ul> <li>Wait X Bars from new trading day</li> <li>Wait X Bars from last exit</li> <li>Exit after X Bars </li> <li>Setup Stop Loss to Breakeven after X Bars</li> <li>Exit after reverse tail (topping / bottoming wick/tail)</li> </ul> <div>For the next few months we will continue to post a solution to each of these... for now here are some code examples for this.</div> <div> </div> <div><strong>Within OnStateChange:</strong> <hr /><strong></strong></div> <div>   WaitXBarsFromNewTradingDay = 10;</div> <div> </div> <div><strong>WithinOnBarUpdate:</strong> <hr />                if (Bars.BarsSinceNewTradingDay < WaitXBarsFromNewTradingDay && Position.MarketPosition == MarketPosition.Flat && EnableDebugMode == true)<br />                 {<br />                     Print("RETURNING Bars Since new day has not fired... We will skip this order because we are currently flat in the market. ");<br />                     Print("Wait X Bars from new trading day: " + WaitXBarsFromNewTradingDay);<br />                     Print("Bars since new trading day: " + Bars.BarsSinceNewTradingDay);<br />                     BarBrushes[0] = DaysFromTradingDayBrush;<br />                     StrengthCandles1.BarBrushes[0] = DaysFromTradingDayBrush;<br />                     return;<br />                 }</div> <div> </div> <div><strong>Within config properties:</strong></div> <div> [NinjaScriptProperty]<br />         [Display(Name = "Wait X Bars From New Trading Day", Order = 16, GroupName = "Order Entry")]<br />         public int WaitXBarsFromNewTradingDay<br />         { get; set; }</div> <div> </div> <div>Wanting a code example we are not including here? Let us know how we can help.</div> <div> </div> <div>Chad</div> <div> </div> 9Epic Bounce with Crypto Futureshttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/8/epic-bounce-with-crypto-futuresCrypto,Epic Collection,Futures,NinjaTrader,Strategy OptimizationTue, 15 Jun 2021 04:21:39 GMT<p>Trading crypto futures with NinjaTrader and Epic Bounce strategy. </p> 8Trading TD Ameritrade / thinkorswim with NinjaTraderhttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/7/trading-td-ameritrade-thinkorswim-with-ninjatraderCrypto,Epic Follow,Futures,MNQ,NinjaTrader,Strategy Optimization,TD Ameritrade,thinkorswim strategy testingMon, 14 Jun 2021 01:50:28 GMT<p>Several customers have been wanting to trade TD Ameritrade / thinkorswim with algo trading and after they initially research this idea... they usually end up in an endless loop trying to backtest using TDA OnDemand (extremely limited), and then they also find out that although Thinkscript is easy to learn and similar to C#, there is no real way to actually enable (at least at this time and likely a while given the Charles Swab merger).</p> <p>So... For these clients some of the suggestions we have been utilizing several setups for Algo Trading with Epic Collection. I do want to point out several pros and cons when algo trading with TD Ameritrade and NinjaTrader:</p> <p><strong>Cons (as far as I know, most of these are all known issues when searching the NinjaTrader forums):</strong></p> <p>1. TD Ameritrade doesn't provide tick data and doesn't seem to work well with intrabar setups where the stop loss might change over time. </p> <p>2. Lots of errors pop up (which seems difficult or I can't find a way to disable) for things such as "no shares to short" messages. We ended up setting up only long setups. </p> <p>3. When an OCO orders is placed with a profit target and stop loss... that cannot be changed throughout the duration of the order. So basically for any setups where you would ever want to change the stop loss or profit target, this is a problem. </p> <p>4.  We initially had problems when we would have hundred plus positions open with the NinjaTrader feature "Close all positions" at a specific time. Basically this would work great with 15 instruments but with 100 it would end up timing out and leaving positions open overnight! </p> <p>We later added code into Epic Collection to set the trading session hours outside of the instrument trading hours. This is helpful for many reasons as there is also the option to flatten the strategy and end it if its running outside of that timeframe.</p> <p><strong>Pros:</strong></p> <p>1. No commissions! </p> <p>2. Sometimes the trades for Epic VWAP or Epic Bid would be in/out over 250+ times per day for over 100+ instruments! Seemed to trade well, especially for setups where the setting was "OnBarClose" and at least a 5 minute or more data series. </p> <p>3. Easily setup similar strategy that would run on percent basis with "Dynamic Quantity" enabled on the Epic Bid or Epic Follow strategy... With this we would run a daily import for specific stocks we wanted to target for the day, import this into a list within NinjaTrader, and then choosing the instrument for the strategy, choose "Select All" for the instrument list. This would end up creating 100+ strategies all with the similar parameters and all we have to do each morning is import the list, create the strategy one time and then right click on all of them and click "Enable".</p> <p>PYPL trades well with Epic Follow... Epic Follow will look for correlation between index's or another instrument and if a major change in the index has occurred, and the same change has not occurred in the master instrument, it will enter in the appropriate direction to "follow" the index. </p> <p> </p> 7Epic Profits - NinjaTrader Strategy with 3 or 4 bar playhttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/6/epic-profits-ninjatrader-strategy-with-3-or-4-bar-playEpic Collection,MNQ,NinjaTrader,Strategy OptimizationSat, 12 Jun 2021 23:42:10 GMT<p>Great example that outlines two short entries for Epic Profits 3 bar and 4 bar play against MNQ on a 3 min chart.</p> <p>Epic Profits is based on intrabar trade strategy for NinjaTrader which looks initially for a significant engulfing bar (potentially with higher and increasing volume)... Then waits for bar two or three to not go too high past the first engulfing bar, and also not lower than roughly 50% of the previous bar. At this point a market or stop market order is placed on bars 3 or bars 4 if a new higher high (for a long entry) is reached. </p> <p>Many of the variables and specifications align with a mentor and stock guru Jared from live traders (special thanks Jared!). You can find how he designs the trade setup here:</p> <p><a href="https://www.youtube.com/watch?v=Gjj_L0gbUdg">https://www.youtube.com/watch?v=Gjj_L0gbUdg</a></p> <p><a href="https://www.youtube.com/watch?v=rQmGWPqfG5s&list=PLtwMG9NpaD7QOh50pwmXqjGMzsAojso-w&index=3">https://www.youtube.com/watch?v=rQmGWPqfG5s&list=PLtwMG9NpaD7QOh50pwmXqjGMzsAojso-w&index=3</a></p> <p><a href="https://www.reddit.com/r/Daytrading/comments/hch901/3_bar_play/">https://www.reddit.com/r/Daytrading/comments/hch901/3_bar_play/</a></p> <p>Would love to hear everyone feedback or screenshots of trading the 3 bar play with Epic Profits! </p> <p> </p> <p> </p> 6Epic Bid - NinjaTrader Algo Tradinghttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/5/epic-bid-ninjatrader-algo-tradingbacktesting,Crypto,Epic Collection,Futures,MNQ,NinjaTrader,Strategy OptimizationFri, 11 Jun 2021 16:56:57 GMT<p><iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/FUeGRWyUCgw" title="YouTube video player" width="560"></iframe></p> <p>Epic Bid, is a strategy which keeps an ongoing bid price for your instrument based on the lowest price of the last “x” bars. You can define optional settings such as price offset (above or below that price). </p> <p> This first video covers only a brief summary of Epic Bid indicator and Epic Bid Strategy for NinjaTrader 8. Please check the blog and comments for upcoming videos on NinjaTrader 8 strategy optimzation and best practices with Epic Bid.</p> 5How to trade crypto's correlated with futures or other instrumentshttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/4/how-to-trade-cryptos-correlated-with-futures-or-other-instrumentsbacktesting,Crypto,Epic Collection,Epic Follow,Futures,MNQ,NinjaTrader,Strategy OptimizationSun, 11 Apr 2021 21:22:00 GMT<p>When we first started backtesting Epic Follow I had high expectations between futures and stocks but I was extremly surprised to see the results that came from backtesting cyrpto against futures (and the other way around). Did a big move in NQ/ES affect Bitcoin? Did a significant move in bitcoin affect the Nasdaq? Surely not.... but wait, it looks like it does! </p> <p>Most of this strategy trades with tickers I am really not used too... Do you guys trade RTY? 6B? ZW? This was backtested from 01-01-21 to 03-10-21 against <a href="http://www.nashtech.xyz/follow">Epic Follow</a> and literally all futures are coming up green, but I typically only trade micros and not sure I have the margin to keep these (although strategy is set to close EOD). It does test ok against MES and MNQ but nothing compared to the others I mentioned.</p> <p>What crypto exchange do you prefer? As we continue to add crypto API's for trading with NinjaTrader, which ones would you prefer to see added?</p> <p>-Chad</p> 4Algo Trading Social Sentimenthttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/2/algo-trading-social-sentimentbacktesting,Epic SocialThu, 08 Apr 2021 16:29:58 GMT<p>Hi Algos!</p> <p>Finished up with an algo related to social trending... There are multiple setups and it does require a little hand holding each morning (importing list of higher volume stocks that are trending).</p> <p>General setup:</p> <p>1. Setup is daily / not intraday.</p> <p>2. Ignitor bar comes from stock that's already trending on twitter/reddit/stock twits and the first high volume day from 'x' days back... such as 200% (or any variable that is back testing well as I still optimize it).</p> <p>3. Parameter for number of "Pause" bars, awaiting confirmation. Confirmation comes from when trending stock has spiked in activity or sentiment score (tracking 7, 14, 30 day moving average of activity for stocks etc...). If nothing happens with social sentiment within the pause bars, no trade.</p> <p>4. If during pause bars social sentiment (positive or negative) or activity (number of posts) spikes, entry order is placed (as long as stock has not already went up too much in last 'x' bars.</p> <p>5. Early exit option when sentiment has dropped while activity has spiked. I am actually not sure on the best exit yet... Could be after number of bars, or maybe after high volume and high wick?</p> <p>Keeping this setup now only for long as all my backtesting basically represented "no such thing as bad press" and even poor social media sentiment would still lead to spikes... also who wants to be shorting any of these trending stocks, too risky!</p> <p>Let me know if you have any ideas what have worked for you related to algos for social sentiment, especially best entry/exit setups.</p> <p>-Chad</p> <p>Lower studies:</p> <p>1. Study below volume represents social sentiment (positive / negative discussions towards stocks).</p> <p>2. Study at the very bottom below the social sentiment is activity (number of posts / mentions of a stock) for the day.</p> 2Backtesting with ThinkOrSwimhttps://www.nashtech.xyz/Help/NashTech-Trends/PostId/1/Welcome-to-Live-Blogbacktesting,General,ondemand,tosTue, 17 Nov 2020 01:07:44 GMT<h4>If you don't know how your indicator performs historically... why are you using it?</h4> <div> </div> <p><strong>Hi fellow traders in the trader-hood! </strong></p> <p>Just got the new blog setup and wanted to start the first post off related to one of the most critical topics on indicators for thinkorswim or other platforms like Nina Trader.</p> <p>For the most part all of our indicators are heavily backtested against multiple timeframes and multiple types of trades from stocks to futures etc... We want to get the absolute best results because, well... we trade with them too! The only indicators we don't have backtesting for are the ones simply related to watchlists or for Epic Labels as these are extremely useful when trading but there really isn't a way to backtest against them. </p> <p>If you have been looking around for indicators for a while, you know the biggest problem is that there are so many out there, majority are not documented, and even more important so many of them have not been backtested for a strategy to see if the results for buying and selling a stock would really (historically speaking) work as a successful strategy.  </p> <p>So as we got started with each indicator we wanted to make sure we had the absolute best options for each indicator and backtesting. This is because trading different stocks or futures really require different setups and small changes can extremely give you very different results. </p> <p>Below I will cover the same general settings all of our indicators support, with minor tweaks or changes from indicator to indicator for anything specific to that specific functionality. </p> <h4>thinkorswim backtesting indicator basic settings<strong></strong><strong></strong></h4> <div> </div> <ul style="margin-left: 40px;"> <li><strong>Enable Backtesting - </strong>Although you have added the thinkorswim epic indicator as a "Strategy" and not just a study, you still have the ability to enable and disable backtesting. You must first enable the setting to display backtesting. This allows you to use one strategy on your charts without having to add/remove studies and strategies everytime you want to run some backtesting reports. </li> <li><strong>Trade Position: - </strong>This is to choose if you want to only show testing and strategy reports for buy/long, sell/short or both. Both is enabled by default. </li> <li><strong>TradeConfirmType - </strong>Each of the Epic indicators is a little different, but most of them provide an "early entry" notification option, or a confirmed setup, and then a double confirmation. For example, in the case of Epic Entry this might include ability to see the first higher high after many lower highs as a confirmed setup, however if the bar does not also close above the previous bar then it would be considered a weaker setup. On the other hand, sometimes you you miss out on the best move for the setup because you are entering it late. For this reason we offer multiple setup options for when to enter the position. You should likely test multiple scenerios for the best results... because often an early entry but a closer stop loss can lead to more profitable trades. </li> <li><strong>Trade Size </strong>- Select whatever you feel comfortable with for your normal trading plan. Typically this doesn't matter because the strategy is either profitable or it isn't, so a position size of 1 or 100 isn't going to make a difference, this only changes later if your trading plan is to take a portion off the table and move your stop to break even or trade with brackets for closing out a position etc... note: At the time our indicators and backtesting do not support closing at certain intervals. </li> <li><strong>Price Type - </strong>Used for selecting the entry price or closing price of the position... This can be the open of the next bar, the close, the last price, or mark. Just make sure if you adjust this and see significant changes to the P&L that you also trade based on those same specifics.</li> <li><strong>Use Time Filter - </strong>This allows you to select the trading hours that a you trade, or would like to see the profit and loss for... This is useful if you only trade specific hours, or if you want to avoid certain times of trading. So if trading the morning gap is not your trading style... you might consider changing the RTH (regular trading hours) open to be 1030 instead of 930 (if trading was based on EST market open etc..). </li> <li><strong>RTH Open / RTH Close -</strong> The time for open and close based on above settings if you choose to enable the time filter. </li> </ul> <hr /> <h4><strong></strong></h4> <h4><strong>Closing Position Settings</strong></h4> <p> </p> <p>Its fair to say that while there might only be a single "open" for a position, the closing the position can be fired by many different setup options, and the first to confirm one of the conditions would then close the position. For example, if you enable the feature to set the last bars high / low as the stop loss, this would likely fire as a stop loss before the fixed dollar amount you might have specified... If you do not hit the target from the fixed dollar amount, or the target percentage, and you do not hit your stop by multiple methods... then if you have the setting enabled to Close EOD it will close your position then. </p> <ul> <li><strong>Close EOD</strong> - <strong></strong>Certainly a setting that can change the results of your P&L! By default the setting is enabled to close out all positions within the last 'x' minutes of close, you can choose the regular trading hours and hours to close positions in another setting below.</li> <li><strong>Set Last Bar Low Stop Loss - </strong>This would set the stop loss to the low of the previous bar.</li> <li><b>Last Bar Low Stop Loss Offset -</b> This is used in case you want some "wiggle room" for the previous setting for the stop loss. For example, if the stop loss was set to the prior bars low, and that low was $54.25 and the offset setting was set to .50, then actually it would set the stop loss to $54.75. This is useful because often the stop loss might hit or the low might hit the exact amount of the previous candle and this provides some room to breath. <b></b></li> <li><b>Close Position On Reversal Indicator = </b>This would work as a stop loss if during the process the setup created an order in the opposite direction. For example if you are trading 5 minute pivots and have a long target and stop loss that has not been met however a separate pivot has indicated an order in the opposite direction this would close the position. </li> <li><b>Close Position X Bars Past </b>- Option to close the position if "x" bars have passed with the price going in the opposite direction as your trade. So if the you set this to be 5 and no other target or stop loss was triggered, it would trigger after 5 bars in the opposite direction of your trade. </li> <li><b>Bar Exit </b>- Based on the setting above, when its enabled this number is "x" for how many bars in the opposite direction should be checked. </li> <li><b>Close Position Trail Stop </b>- Typically used when all other stop loss's are not set and you simply want to let your trade "run" or close out EOD. You can set a trailing stop dollar amount and it will close out based on trailing dollar. </li> <li><b>Close Position Trail Stop Dollar </b>- The dollar amount used when trailing stop is enabled. For example if your long entry was $50.00 and you had a trailing stop of $3.00, if the stock immediately dropped to $47 it would close out, or if the stock went all the way up to $65 and then at some point dropped down to $62.00 then it would close the position. </li> <li><b>Enable Scalp Long / Short</b>- The scalp feature when enabled will close 1/2 of the position if that target is reached. </li> <li><b>Scalp Amount Long / Short </b>- The amount that corresponds to to the setting above when scalp feature is enabled. So if you have a target set to $5.00 and the scalp is set to $2.00, it will close half of the position at the $2.00 target. </li> <li><b>Enable Target Long / Short  </b>- Set as "Order Cancels Order" but really its just the target and stop loss, the target can be triggered by either percent or dollar amount (whichever fires first). So if you want the target to be set by target percent, then just set the target dollar amount to an extremely high dollar amount. </li> <li><b>Target Percent Ratio  </b>- The percent ratio to use as the target to close position. </li> <li><b>Target Price </b>- The  dollar amount to use as the target to close the position.</li> <li><b>Stop Price </b>- The dollar amount to be set as the stop loss to automatically close the position. </li> </ul> <p>Hope this is helpful! </p> <p>-Chad</p> 1