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!
Thread for discussion: https://www.bigmiketrading.com/elite-circle/24478-trendline-trader-ninjatrader.html#post281494
Current Version: v1.5
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.