Magic Stick Usage Example

The following example will present how to use the Magic Stick commands in a bullish market. All trades and trade adjustments are hipotethical and should not be considered as a trading strategy. (The test was done with the help of the Strategy Tester in Metatrader 4.)

First we create the trend lines and set the commands (in the description field of the given trend line):
define buyStart command
define buySL command
define buyTP command
define buyTP and buyProfitSL command
These commands (descriptions) can be also checked in the "Objects List" (Ctrl+B) of the chart:
defined commands
startup
Magic Stick will wait for a break of the trend line before starting an order:
wait for trend line break
Once the order is started, stop loss will be placed with 20 pips below "Horizontal Line 2" (the trend line with the highest value having buySL command in its description field) and take profit will be placed with 10 pips below "Line 3" (the trend line with the highest value having buyTP command in its description field):
buyStart executed
The buyStart command is also removed on order start:
commands after buyStart
Partial take profit can be specified also with the buyTP command but only if there is another trend line with a higher value having a buyTP command in its description field. (The furthest take profit will be used as a final / full take profit, even if the second parameter would mark it as a partial take profit command.) The partial buyTP command will be removed from the description field of the trend line when the market hits the specified price.

Profit covering (protecting your profit) can be also set using trend lines. When the market reaches the price 5 pips below "Line 4" (the trend line with the buyProfitSL command), Magic Stick will replace this command with a buySL command setting the S/L 50 pips below the trendline ("Line 4").
buyTP and buyProfitSL executed
commands after buyTP and buyProfitSL
It is also important to note that Magic Stick will adjust the T/P of the active orders every time the market moves to a new candle:
TP adjusted
T/P is placed 10 pips below the current price of "Line 3" trend line:
TP reached
final command list

The following list of trades shows:
  • the updates created according to the changed T/P values: trades #2, 3, 7-21
  • the partial T/P: trades #4, 5 (partial closing in Metatrader 4 is done in two steps)
  • the new S/L for profit covering: trade #6
  • the final T/P: trade #22
#TimeTypeOrderSizePriceS / LT / PProfitBalance
12009.09.10 12:00buy10.201.66261.64361.6681
22009.09.10 13:00modify10.201.66261.64361.6684
32009.09.10 14:00modify10.201.66261.64361.6686
42009.09.10 14:54close10.081.66671.64361.668632.8010032.80
52009.09.10 14:54buy20.121.66261.64361.6686
62009.09.10 14:54modify20.121.66261.66221.6686
72009.09.10 15:00modify20.121.66261.66221.6689
82009.09.10 16:00modify20.121.66261.66221.6691
92009.09.10 17:00modify20.121.66261.66221.6694
102009.09.10 18:00modify20.121.66261.66221.6696
112009.09.10 19:00modify20.121.66261.66221.6699
122009.09.10 20:00modify20.121.66261.66221.6701
132009.09.10 21:01modify20.121.66261.66221.6704
142009.09.10 22:00modify20.121.66261.66221.6707
152009.09.10 23:00modify20.121.66261.66221.6709
162009.09.11 00:00modify20.121.66261.66221.6712
172009.09.11 01:00modify20.121.66261.66221.6714
182009.09.11 02:00modify20.121.66261.66221.6717
192009.09.11 03:00modify20.121.66261.66221.6719
202009.09.11 04:00modify20.121.66261.66221.6722
212009.09.11 05:00modify20.121.66261.66221.6725
222009.09.11 05:06t/p20.121.67251.66221.6725118.9210151.72

Cleanup

Finally Scripts/MagicStick-Cleanup can remove all of the commands from the description fields of the trend lines and the arrows and trend lines created by Magic Stick:
commands cleaned

Other usage examples

To add a stop loss to your long orders, just draw a trend line, type e.g. buySL 15 in the description field and then just drag your trend line freely: Magic Stick will automatically adjust the S/L value of your orders (having the same currency as the current chart of course).