This is an experimental indicator that can enter and exit live positions. Use entirely at your own risk and with extreme caution! You have been warned, so don't blame me! I will not accept liability for anything!
This indicator can enter a position with a market order when price crosses a selected line.
It can also exit a position on a second line.
These operations have NO OCO LOGIC, so when one is executed the other one will remain armed.
The account can be set manually or the account set in ChatTrader will be used.
For this indicator to work correctly you must not disable the ChartTrader! Hiding the ChartTrader is no problem.
All logic is held locally, so if you lose connection, it can and will not execute. So never use this without a second "backup stop" held at the exchange or broker! Otherwise you will have a naked position on disconnect!
An armed buy line will show up as green, a sell line as red and a stop line as magenta. They are also labeled. Once they become inactive (either executed or expired) they will change back color to their original color before they have been armed.
Lines expire when the line ends in the past.
The buttons also change color on arm/disarm.
To arm a line:
1. select the line
2. press either the "Mkt" or the "Stp" button on the toolbar
To disarm a line:
Either (while no line is selected) press the "Mkt" or the "Stp" button on the toolbar, depending on which you want to disarm.
Or delete the line.
To switch the armed line:
1. Disarm the old line.
2. Arm the new line.
Armed lines can be manipulated just as normal lines.
Please only download if you understand the risks of using such an indicator and accept that you will use it entirely at your own risk!
Please also note that this is version 1.0 and not extensively tested yet!
This is an experimental indicator that can enter and exit live positions. Use entirely at your own risk and with extreme caution! You have been warned, so don't blame me! I will not accept liability for anything!
This indicator can enter a position …
Current Version: v1.5
Changelog:
27. November 2012 v1.1
Now has a buy a sell and a stop button, so no confusion if a line sells or buys.
The bug with double entries should be gone too.
Added support to use buy@ask and sell@bid instead of market orders.
27. November 2012 v1.2
Fixed a bug where an error was thrown OnStartUp when starting the indicator without a connection, as there is no enabled account in that case (Account field greyed out in ChartTrader, even Sim101 not available)
04.Feb 2013 v1.3
Updated the strapping to ChartTrader.
Now has possibility to Buy/Sell Market, @Ask or @Bid.
Manual Account setting will affect all orders now.
12.Feb 2013 v1.4
Improved the handling of ChartTrader toggle, Button is now in the normal spot and the little "F" as well. If you use vvMiniTradePanel, please update that too.
13.Feb 2013 v1.5
Fixed bug that threw an error in OnTermination.
This indicator will add buttons to the Chart Trader which will allow you to quickly change the quantity of the contracts. The buttons can be set to a custom quantity.
Please watch the video on how to use and post any questions here:
I have created custom Quantity Buttons which attaches to the Chart Trader. This allows you to quickly change the contract quantity and can be customized to your liking.
Important: This indicator is just out of the beta stage. Before asking a question …
Updated:
2-4-13
1.3 - added the ability to change the color of the buttons.
Candlesticks are formed by accumulative volume delta. Sell volume is subtracted from buy volume, and is mathematically expressed as: buy (positive values) + sell (negative values).
Buy volume, price divergence: Occurs when price ticks below the starting point price (from indicator running time), and there is accumulated buy volume delta (more buying than selling volume). Current candle's outline and wick is a thick magenta color during this time.
Sell volume, price divergence: Occurs when price ticks above the starting point price (from indicator running time), and there is accumulated sell volume delta (more selling than buying volume). Current candle's outline and wick is a thick cyan color during this time.
Description:
This algorithm is a custom performance index for the Default or Genetic optimization methods in NinjaTrader 7. Optimization with this index maximizes the 20th percentile of noise-injected bootstrapped expectancy. This metric is designed for robustness against worst case conditions. Note that due to the mathematics, the solution is not deterministic (run it multiple times, and you will get slightly different solutions each time).
Installation:
Add this file to your ...\NinjaTrader 7\bin\Custom\Type\ directory, open any indicator or strategy, and compile.
Details (this math is in here):
1. For a given series of trades of length N, the top 10% are removed, creating a modified series of trades of length N*0.9.
2. This modified series of trades is sampled *with replacement* for 10*N*0.9 samples. This series becomes the bootstrapped trade series.
3. Gaussian noise is a given mean and standard deviation is added to each bootstrapped sample.
4. Expectancy for this bootstrapped + noise series is calculated.
5. Steps 2 through 4 are done 5000 times, with different sampling from the Gaussian noise. This creates a distribution of expectancy.
6. Finally, the performance index returns the 20th percentile of these 5000 runs (so, the 1000th worst expectancy) to the NT optimizer.
Discussion:
Removal of the 10% best performing trades is an attempt to be pessimistic by assuming that the best 10% trades observed in the past will never repeat. We do not want total system performance to hang a few high-yielding trades.
Injecting noise to the bootstrapped sample accomplishes two things. First, it adds uncertainty to each bootstrapped series, thereby simulating diversity in the bootstrapped series (hopefully the diversity we would measure in a much larger sample). Secondly, it makes each bootstrap series unique. This means that we way calculate a distribution from the ensemble of bootstrapped series.
Any percentile may be returned. We could return the mean. By returning a value to the left of the mean, the 20th percentile, we are maximizing 80% of the distribution.
Note: Because we are injecting randomly sampled noise to the bootstrapped series, the solution from this performance index is not deterministic!
Suggestions:
If you use this, you should be comfortable changing the parameters found at the top of the algorithm. Adjusting the value of the standard deviation of the noise may make or break the robustness and success of this algorithm.
Shutdown Ninjatrader
Unarchive in the db folder, and place the tick and minute data in the correct folders (Default location is in your Documents folder, not Program Files)
Open Ninjatrader
If you have problems, delete the .sdf file in the Ninjatrader documents folder.
Gold is easy to trade and a good place to start for new traders.
Avoid mini contracts, especially mini forex contracts. They are very expensive and make it unlikely to be a successful trader. Trade a normal forex account if your funds are small, because margins are adjustable, unlike Futures.
This indicator will allow the user to hide and rearrange the Chart Trader buttons within Ninja Trader.
Important: This indicator is just out of the beta stage. There is some important things to know to get it to work properly. Please take 6 minutes to watch the video in the link below. Finally, this changes the default functionality of the Ninja Trader. This was tested with NT7 using the built in SIM account. Use at your own risk!
Please take 6 minutes to watch the video which can be found here. There is some important steps which will eliminate questions later.
Simply summates the seconds required to draw a bar. Designed to be used with non-time based bars. Includes 2 horizontal lines, for example can have the 1st line represent 300 seconds (5 minute) and 2nd line set to 60 seconds (1 minute). Bars change to red if the number of seconds exceeds your desired threshold, for example turns bars red if 600 seconds (10 minutes) is exceeded. Includes ability to draw a SMA of the time as well that defaults to a 5 period.
Creates a histogram of volume at price points using an additive 1 tick data series. The histogram can be drawn on the left hand or right hand side of the chart. The color and opacity of the bars can be defined. A scale factor is available to control the amplitude of the peaks and valleys. The volume summation can use all bars of the chart, bars starting at the left hand side of the chart or bars since the last session start as defined by the charts session setting. The summation of volume starts at the designated start bar and continues to summate until a refresh, at which point the starting bar location is redefined based on your settings (beginning of chart, left side of chart, session start). It uses the 1 tick data series volume which can differ slightly from the main bars volume, but it is very close, close enough for a volume profile. The advantage of being based on the 1 tick data series is this indicator will redraw/refresh and does not need an external file for data storage.
December 10th, 2018 02:39 AM avall38486 Brilliant is not enough, genius may be more appropriate. Thank a million.
Would it work on an indicator ? ie in the lower panel, if the indicator crosses the trend line will it still trigger a t
rade ?
November 7th, 2018 07:50 AM romus Brilliant!
February 14th, 2016 08:55 AM mkoning Thanks vvhg
January 8th, 2015 11:46 AM Malthus Thanks. It would be perfect if it could send a market order when price "touches" the line instead of crossing it.
October 31st, 2015 02:25 PM manualtrader excellent, thank you!
January 27th, 2014 07:49 PM alexJetski amazing thanks
February 13th, 2013 04:12 PM artfuls when I close a workspace and bring it back up and have 3 chart traders up on 3 different charts some come up wright and
some not te buttons are not how i left them....dont no why thanks artfuls
April 28th, 2021 09:43 AM bluedot thanks for the indicator!
January 31st, 2021 06:23 PM Ride the Wind H,
Is their a NT8 Version? I have been looking this feature? Great work.
September 19th, 2018 03:40 PM delta9100 thank you
I was using it for nt7 do you have made oft nt8
December 19th, 2014 01:28 PM Bvend Excellent for spot forex
November 14th, 2013 12:43 PM Mindset Thanks. Very weird you have to declare the same line of code twice for each button - but you do. Must have taken a while