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!
By now most of you probably have figured out my love for floating windows.
This is a little window with a few buttons that allows you to enter and exit trades.
Most stuff is pretty self-explanatory. The only thing worth mentioning is the Close button, which will first cancel all orders for the selected Instrument-Account combination and then close any open position for the selected Instrument-Account combination. Edit: Is now default NT behaviour when there is an open position, if flat it will cancel all working orders for that Instrument-Account combination.
Account, Instrument and Quantity are bootstrapped from ChartTrader, so if you want to change them, you will have to do it there. Edit: Now has dropdowns that always have the same value selected as ChartTrader, that means no matter where you change it the other one will also reflect that change. For that reason vvMiniTradePanel will enable ChartTrader when it starts up. You can hide, disable, show or enable it later. ChartTrader has to stay enabled, a warning will be shown if it is disabled. The Account can also be set manually, however, Quantity and Instrument will still be bootstrapped from ChartTrader.
In terms of size, location and some other settings it is quite configurable.
In order to use the advanced buttons (Lim or Stop +Offset buttons) the AT Interface has to be enabled (ControlCenter ->File ->AT Interface)!
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!
01.Feb.2013 v2.1
Fixed null reference bug in OnTermination.
Changed Close button logic, now exactly the same than the ChartTrader Close button.
05.Feb.2013 v2.2
Fixed bug where the first strategy change was not reflected by ChartTrader.
v2.3
Added dropdown for account selection.
Added Quantity up down for quantity selection.
v2.4
Fixed bug where quantity was not updated after strategy change.
06.Feb.2013 v2.5
Increased max value for quantity to 1m.
Fixed bug with quantity update.
Improved layout a bit, dropdows are larger now.
Put instrument label on Close button.
Added option to hide ChartTrader on startup.
v2.6
Fixed resizing issue.
v2.7
Fixed quantity increments for forex and stocks to NT defaults (.1m and 100).
Max quantity is now 50m for forex, 1m for stocks and 10,000 for futures.
07.Feb.2013 v2.8
Relocated show ChartTrader button so that it does not hide the "F" for unfixing the y scale.
12.Feb 2013 v2.9
Improved the handling of ChartTrader toggle, Button is now in the normal spot and the little "F" as well. If you use vvTrendLineTrader, please update that too.
05.Mar 2013 v3.0
Fixed a bug where button location got messed up on resize or minimize.
13.Mar 2013 v3.1
There was a problem with changing live orders as they might have the order state "Working" whereas the same order on an NT sim account has "Accepted". This version should now work correctly for live and sim.
02.Apr 2013 v3.2
Corrected quantity increment for currencies to 0.01M.
08.Apr 2013 v3.3
Added option to show reverse button.
15.Jul 2013 v3.4
Added functionality to "Close" button, left click same as ever, right click brings all targets to last traded price (i could do best offer too).
04.Nov 2013 v3.5
Fixed a bug (again) where button location got messed up on resize or minimize.
15.Feb2014 v3.6
Added some buttons to place stop or limit orders in an easy way. They are placed x ticks away from the current price, where x is a setting in the properties dialog.
Of course all this is optional, no need to have the buttons on there when you don't want them... To use the new buttons the AT Interface has to be enabled (ControlCenter ->File ->AT Interface)!
Changelog:
(earlier changes can be found in post #1 in the thread)
April 16 2013: v5.8
Important Bug Fix: fixed rounding error that pretty much messed up everything, please ALL update to this version!
v5.9
Apparently v5.8 did not fix the issue, hence this update.
May 5 2013: v6.0
Fixed a bug that could result in large trace files.
June 10 2013: v6.1
Improved window position handling. Now has 5 modes:
Auto: Default location and size
Manual: location and size are set manually
DockRight: Docks to the right of the parent chart
DockLeft: Docks to the left of the parent chart
RememberPosition: this will remember position and size
Feb 07 2014: v6.2
Added option to show the Dominant Limit or Largest Limit in a print, setting for this is: Parameters-->#12
v6.3 Fixde a bug in the RememberPosition function.
February 7th, 2014
Size: 29.17 KB
Downloaded: 7924 times
1246
vvhg
Modifies the Window style of NinjaTrader windows.
This indicator has a global scope (inside NT) and can influence nearly every window of NT. Current Version is v3.1
Changelog:
Uploaded new version with increased scope, now all windows (exception: vendor indicators) can be modified.
this does also work together with the FocusTitlebar indicator, in that case set Chart changes disabled to TRUE.
Changed the name to vvHideTitleBar.
September 3 2012: v1.5
Removed bug which led to link button reappearing after workspace change.
14 Sept 2012 v2.0
Fixed issue where reloading charts or reconnecting applied the original style
Added hotkey Alt+B to switch between Standard and user selected style (only charts)
16 Sept 2012 v2.5
Bug fix: maximized windows are now treated correctly.
Toggling between Standard and user selected style now works for all windows.
Added the functionality of vvFocusTitleBar as an option, if chosen, charts and indicator windows will display the titlebar when they have focus.
Made the hotkey for toggling (Alt+b) global, so it will work regardless of which window has focus.
17 Jan 2013 v2.6
Added support for Jigsawtrading Depth&Sales Beta V4. Its border can now be manipulated too.
01 Feb 2014 v2.7beta
Hopefully fixes NT crashes on Windows8, lots of beta testers appreciated!
The only thing that changed is that I added some error handling blocks, so on Win7 and older it will behave exactly like v2.6.
Please note that this is a beta version that might still crash NT on Win8!
06 Feb 2014 v3.0 Changed hot key for toggle from Alt+B to Alt+W.
Fixed bug where indicator windows didn't get enabled again.
I expect it to work correctly on Win8 now.
v3.1
Disabled forcing Classic Theme for NT on Win8 machines as it messed with the buttons.
There is a known incompatibility with the indicator WorkSpaceChanger.
February 5th, 2014
Size: 6.77 KB
Downloaded: 1081 times
1314
vvhg
This is a spinoff of the vvSuperGauge, no button, controlled with the middle mouse button.
It shows position sizing and has two modes: R/R or fixed targets.
Supports up to 3 targets and one stop.
August 18 2012: v1.2
Added option to use a fixed stop and added a user defined maximum stop which will not be exceeded.
September 6 2012: v1.3
Line width and length now configurable.
Lines stay in correct place when axes resize/move.
More stats display next to line.
September 7 2012: v1.4
Colors are now user selectable.
September 17 2012: v1.5
Corrected bug where stop ticks were calculated wrongly.
Added an option to display the labels on the right side above the lines.
January 12 2013: v1.6
Corrected rounding error in target calculation.
Corrected label display bug where label was displayed on wrong side.
January 31 2014: v1.7
Fixed bug with YM.
Allowed R:R smaller than 1:1.
January 31st, 2014
Size: 6.94 KB
Downloaded: 881 times
1249
vvhg
This Indicator exposes two methods that can be called from any indicator or strategy to make a post to BMT. Current Version: 2.6
There are various overloads to these methods, so you don't need to use all arguments.
The two methods are:
and Changes:
makepicpost now needs "this.ChartControl" instead of just "this"as argument.
makepost will no longer require "this" as argument.
The first will post a screenshot of the chart it has been called from (with optional message), the second will post a plain message.
Edit: Added a third method, uploadimg(), as the other two it has some overloads.
It returns the url of the img (with image tags) with an event. The event can be used like:
myposter.ReturnUrlChange += new vvBMTAutoPost.ReturnUrlChangedEventHandler(MyReturnUrlChangedEvent);
private void MyReturnUrlChangedEvent(object sender, ReturnUrlChangeEventArgs returnurl)
{
//do whatever you want here...
Print ("Change detected "+returnurl);
//this prints the returnurl, three values are possible:
//"Working" , "Error" and the actual img wrapped url of the uploaded img.
}
There is the possibility to use a specific file with your API key in it when API key is either "" or not specified in the calling method.
For this to work create the following file:..."Your Home Directory"\Documents\NinjaTrader 7\bin\Custom\BMTAPIKEY.txt
Then put your API key in it, nothing else.
To use these methods you first need to add this line to your variables:
private vvBMTAutoPost myposter = new vvBMTAutoPost();
You then can call them like:
myposter.makepost(...
and myposter.makeimgpost(...
There is a custom EventHandlerfor the response error code. You can implement it like this:
1. paste this line into OnStartUp (initializes the EventHandler):
myposter.ErrorCodeChange += new vvBMTAutoPost.ErrorCodeChangedEventHandler(MyErrorCodeChangedEvent);
2. create the EventHandler method:
private void MyErrorCodeChangedEvent(object sender, ErrorCodeChangeEventArgs error)
{
//do whatever you want here...
Print ("Change detected "+error.ErrorCode);//this prints the change detect and the error code
}
3. paste this line into OnTermination (removes the EventHandler):
myposter.ErrorCodeChange -= new vvBMTAutoPost.ErrorCodeChangedEventHandler(MyErrorCodeChangedEvent);
The error codes are:
0 = no error
1 = Upload to BMCharts failed
2 = Web Client Exception
3 = Time constraint or wrong API key
4 = (not set yet)
5 = other not closer specified error in makeimgpost
6 = tried posting on historical data
9 = busy
Please use the provided EventHandler to do stuff on errors as an error will not occur the moment the method is called but maybe a few seconds later.
There is also all the info on the API in that thread.
Changelog:
19 Dec 2012
Disabled posting on historical data.
21 Dec 2012
Fixed a bug where other windows in front of the chart got caught in the screenshot. Does not (yet) work with minimized charts.
29 Dec 2012
v1.5
added an error code variable that can be accessed (it is thread safe) from the calling indicator.
v1.6
extended errorcode with 9 = busy.
v1.7
Fixed some stuff in the screenshot code
1. Jan 2013 v1.8
Fixed line break issue. Please use <br> for line breaks.
3. Jan 2013 v1.9
Now also works on minimized charts.
4. Jan 2013 v2.0
Made various overloads of the two methods for easier implementation.
Introduced an EventHandler for the error code.
Possibility to use file with API key when API key is either "" or not specified.
For this to work create the following file:..."Your Home Directory"\Documents\NinjaTrader 7\bin\Custom\BMTAPIKEY.txt
Then put your API key in it, nothing else.
(all no code breaking changes)
15. Jan 2013 v2.1
Corrected bug where price axis got cut off under some circumstances.
01. Feb 2013 v2.2
Changed the indicator argument for makepicpost to ChartControl, so use "this.ChartControl".
Deleted indicator argument for makepost, so this will not require a chart to work.
04. Feb 2013 v2.3
Introduced new argument into all methods (historial) This is the historical check so that a strategy or indicator does not try to post 100 messages when it starts up! Please pass the "Historical" attribute like makepostI(.....this, Historical);
v2.4
fixed bug in makeimgpost()
13. Feb 2013 v2.5
Added method uploadimg()
17. May 2013 v2.6 Critical update, update immediately
Changed addresses from http to https, should work again.
May 17th, 2013
Size: 16.98 KB
Downloaded: 157 times
1331
vvhg
This is a chart style for hollow candles. It is not an indicator, but a chart style! This means that it will not add CPU load, but in fact reduce it compared to the standard candlesticks.
Candles where Open=Close will color based on Hi/Lo rejection, so if the top wick is longer it will print as sell bar (as the high got rejected) and vice versa.
April 17th, 2013
Size: 2.05 KB
Downloaded: 439 times
1409
vvhg
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!
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.
March 17th, 2019 10:53 PM Aragorn Excellent for possibly helping us who never learned how to read the tape. Awesome. Thank-you
November 7th, 2018 07:03 AM romus Excellent!
December 2nd, 2016 09:10 AM gentech Many, many thanks for this work. Will there be a version for the NT8 platform? (I wish I had the skills of some of the c
ontributors here; I'd love to do some conversions myself and post for others to use.) Once again, thank you for sharing
your hard work with us.
February 25th, 2016 04:49 PM elyt Thanks, this is so useful. All the best
December 25th, 2015 09:24 AM lesterb Excellent, thank you !
December 10th, 2018 01: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 06:50 AM romus Brilliant!
February 14th, 2016 07:55 AM mkoning Thanks vvhg
January 8th, 2015 10:46 AM Malthus Thanks. It would be perfect if it could send a market order when price "touches" the line instead of crossing it.
May 19th, 2015 01:11 PM abdunbar thanks, looking for example of an indicator opening a separate window.
February 28th, 2014 09:37 AM wxsim1 superb indicator! now hopefully it can be implemented with account groups in the near future
January 26th, 2014 04:50 PM alexJetski awesome work, thanks so much.
December 18th, 2013 09:22 AM Ynotfutures I currently bury NT7's Dom and typically trade from my chart. This tool is much appreciated, its small and compact alway
s on top and easy to access thanks for your time and effort. And thanks for sharing.
November 25th, 2013 03:56 PM mdl060374 great! thanks