"

Line Order

by Dr.Hamdi Boukamcha
Name:
Line Order
Author: Erich Pribitzer (2011.05.16 10:27)
Downloaded: 5226
Download:
Line Order   LineOrder.zip (55.5 Kb)
LineOrder gives you the ability to place an order by using the horizontal line object from the toolbar menu. 
You can also control stop loss and take profit buy moving its horizontal lines. 
For example, if you what to buy EURUSD, just drag and drop a horizontal line in your EURUSD chart window. 
Double click on the horizontal line and change the "name" (on the common tab) to #buy and click the OK-button, that's it! 
(If a double click doesn't work, go to "Tools->Options->Objects" and set the hook "Select object by single mouse click"). 
To close an order, just remove the horizontal-order line. 
Additional options like stop-loss, take-profit, lot-size and trailing-stop can be passed into the description field. 
E.g. for a 20 pips stop-loss and 10 pips take-profit just click into the description field and type: sl=20 tp=10 
Use whitespace to separate options (Picture A). Default values can be set in the EA properties. 
To disable an active trailing-stop, click on the horizontal-order line and write ts=-1 in the description field.

To Do: Pending Orders

Line Order

Commands: (name field)
#buy  		buy order
#sell  		sell order
#selltp		sell order and set take profit at the horizontal line
#sellsl		sell order and set stop loss at the horizontal line
#buytp		buy order and set take profit at the horizontal line
#buysl		buy order and set stop loss at the horizontal line

Options: (description field)
ts		trailing stop in pips
sl		stop loss (pips)
tp		take profit (pips)
sq		stop loss (price) 
tq		take profit (price)
lo		lot size
5 comments  To post a new comment, please log in or register

Eric I need help with GodBot it will not compile and I have all the librays
07.03.2012 06:21 gator

Thanks Erich Pribitzer for sharing such an amazing EA
however,I have some trouble in using it

after i changed the “name” of line to #buy and clicked the OK-button,the stop order(represented by the horizontal line) immediately filled by current price instead of being filled when price went through the line
in other words,my problem is the pending order function of EA doesn’t work

I just dont know why and dont know how to solve it

12.08.2011 08:39 wllrd

Dear Erich Pribitzer,

Thanks, for simple but great idea. One should add windows message just in case the object line is moved by accident.

Thanks :).

21.06.2011 13:40 onewithzachy

ms119:
“To Do: Pending Orders”? Do you mean you cannot open pending orders yet? Why the lines if you cannot?

You have the source code, feel free to add it !! Line Order

20.05.2011 00:29 seizu

“To Do: Pending Orders”? Do you mean you cannot open pending orders yet? Why the lines if you cannot?

Share this article

Leave a comment