Here's an updated version of StackMan, with a few inputs removed.
This version has 4 scripts that *must* be used with the EA (you can't manually open or close trades without them)...
StackMan Buy: Run this script to open a buy (I used the keyboard shortcut Alt + B (Add Buy, geddit?))
StackMan Sell: Run this script to open a sell (I used the keyboard shortcut Alt + S).
StackMan Close All Buys: Run this script to close all buys (I used the keyboard shortcut Ctrl + B (Close Buy, geddit?))
StackMan Close All Sells: Y'know, I've forgotten why I wrote this
How it works...
Short version: The EA does the work, the scripts tell it what to do.
Long version: The EA creates an object on the screen, which contains the MagicNumber...
When you drop one of the scripts on the chart, it looks for the MagicNumber, and if it finds it, it creates a GlobalVariable with the name consisting of...
MagicNumber + EAName + Symbol + either buy, sell, buy_close, or sell_close.
The EA looks for these GlobalVariables, and takes the appropriate action, then deletes the GV.
Once a trade has been opened, the EA manages stops, and when the SL has moved far enough into profit, (as determined by your settings), it will add more trades, eventually doubling-up on the lot-size, (if you enable that feature).
The Settings...
Most options should be obvious to anyone who's used Steve's EA's or shell, so I'll only describe those that are unique to this EA...
BaseLot: When you drop one of the buy or sell scripts onto the chart, the trade is of BaseLot size... Subsequent trades are calculated using the following formula... tradelots = BaseLot * MathPow(2, SILevel) (SILevel = Scale-In Level)... So, if SILevel = 0, tradelots = BaseLots * 1...
If SILevel = 1, tradelots = BaseLot * 2... If SILevel = 2, tradelots = BaseLot * 4.
ProfitToRisk: How far into profit should your Broker-side StopLoss should be before the first Scale_In trade is entered. BreakEvenProfit and JumpingStop StopLosses are stored on the server, whereas TrailingStop is not. If you enter 0 (zero) here, then you will not get any Scale-In trades.
MaxSILevel: Maximum times to double-up... If you enter 0 (zero) here, and a non-zero number in ProfitToRisk, all Scale-In trades will be of BaseLot size.
Since this EA requires your StopLoss to be far enough into profit to cover the loss of Scale-In trades (and still increase your balance), you will have to set and enable JumpingStops.
Have fun with it!
Radar =8^)
P.S. If it's working/not working, if you like/hate it, let me know! No Feedback = No Support!
(edit Fri, Feb 5, 2016)... Updated, see here.
(edit Thurs, Feb 14, 2016...) Updated... Code clean-up only.
(edit Tue, Feb 23, 2016...) Updated, see here.
(edit Wed, Feb 24 2016...) Updated, see here.
(edit Fri, Mar 11, 2016...) Updated, see here.
(edit Wed, Mar 23, 2016...) Updated sqDynamicBreakoutBox indicator, see here.
edit Fri, Sept 9, 2016... Fixed minor copy/paste/forget to edit bloop.