• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:00am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:00am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Does EA execute orders faster than visual interface? 8 replies

Virtual Dealer Plugin - How many seconds does your broker take to execute your trade? 20 replies

Execute Hedge EA 1 reply

How do I add an Alert on TSR Execute Line Indicator 26 replies

Trader failed to execute order: Are some platforms controlled? 9 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 27
Attachments: Make your trend lines execute your orders
Exit Attachments
Tags: Make your trend lines execute your orders
Cancel

Make your trend lines execute your orders

  • Last Post
  •  
  • Page 1 2345 6
  • Page 1 234 6
  •  
  • Post #1
  • Quote
  • First Post: Edited May 22, 2012 4:36am Jun 7, 2011 6:35am | Edited May 22, 2012 4:36am
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
Make your trand lines alive

instructions
This EA will work with horizontal lines and trend lines and will close and open trades according to them. You tell EA what to do by using proper description to each line. EA has parameters defining how to set description for the lines:

- BuyTouchDescription - when line will have this description (default "tbuy-") then when price will touch this line then EA will open buy trade. After "-" sign you set position size for a trade, so when for example you will set such description for a line: "tbuy-1.5" then EA will open 1.5 lot buy trade when price touch this line.
- SellTouchDescription - when line will have this description (default "tsell-") then when price will touch this line then EA will open sell trade. After "-" sign you set position size for a trade, so when for example you will set such description for a line: "tsell-1.5" then EA will open 1.5 lot sell trade when price touch this line.

- BuyCrossDescription - when line will have this description (default "cbuy-") then when price will cross this line (close on the other side of the line) then EA will open buy trade. After "-" sign you set position size for a trade, so when for example you will set such description for a line: "cbuy-1.5" then EA will open 1.5 lot buy trade after candle close on the other side of this line.
- SellCrossDescription - when line will have this description (default "csell-") then when price will cross this line (close on the other side of the line) then EA will open sell trade. After "-" sign you set position size for a trade, so when for example you will set such description for a line: "csell-1.5" then EA will open 1.5 lot sell trade after candle close on the other side of this line.

- CloseTouchDescription - when line has this description (default "tclose-") then when price touch this line then EA will close trade.
- CloseCrossDescription - when line has this description (default "cclose-") then when price cross this line then EA will close trade.
In the same way like for line for open trades you can set trade size that should be open. You set it after sign "-", so for example when you set description "tclose-1.5" then EA after price touch this line close 1.5 trade size. If you dont set trade size that you want to close (for example description for a line is "tclose-") then EA will close every open order for that pair.
Closing trade is fully flexible and supports many positions open, when for example you have 2 positions open - first position is 1 lot buy trade, and 2nd position is 2 lot buy trade, and you have line with description "cclose-1.5", then when price close on the other side of the line, then EA will:
1. take the first open order (in this example 1 lot trade) and close it
2. take the next trade open and close remaining 0.5 lot size, and leave open 1.5 lot size


Trade manager is another EA using MA and trendlines after you open the trade, but you must read the other thread for complete description and you must put KAMMA indicator on indicator's folder
http://www.forexfactory.com/showthread.php?t=293850
Attached File(s)
File Type: ex4 TrendLine_trade_EA.ex4   15 KB | 4,636 downloads
File Type: ex4 TradeManager_v18.ex4   22 KB | 3,388 downloads | Uploaded May 22, 2012 4:25am
File Type: ex4 TrendLine_EA_v36.ex4   60 KB | 3,779 downloads | Uploaded May 22, 2012 4:27am
File Type: ex4 KAMA.ex4   3 KB | 2,955 downloads | Uploaded May 22, 2012 4:33am
  • Post #2
  • Quote
  • Edited 1:45pm Jul 3, 2011 1:28pm | Edited 1:45pm
  •  dashboard
  • | Joined Dec 2008 | Status: Member | 201 Posts
btw can you share the mq4, if you don't mind plz add some feature like SL/ TP, max allowed op

thanks, it help so much....
 
 
  • Post #3
  • Quote
  • May 10, 2012 10:45pm May 10, 2012 10:45pm
  •  FxCzar
  • | Membership Revoked | Joined Dec 2010 | 14 Posts
This is a very good one. you must have invested a lot of time.
 
 
  • Post #4
  • Quote
  • May 11, 2012 6:30am May 11, 2012 6:30am
  •  ndroe
  • | Joined Jul 2007 | Status: Member | 18 Posts
Wow...
This is what i am looking For.. Line To Close all My Trade..
Thanks Tranco...
 
 
  • Post #5
  • Quote
  • May 14, 2012 1:56am May 14, 2012 1:56am
  •  magelan
  • | Joined Nov 2009 | Status: Member | 24 Posts
Hi tranco

good stuff here - very convenient, you don't need to stay glued to the screen all the time.

One question. Is it possible to numerate the trades somehow, so that the EA
would execute them in this numeric order. That will be awesome if possible, if one trades some kind of grid method. Thanks.

Have a nice day!
Profit Margin is the King!
 
 
  • Post #6
  • Quote
  • May 14, 2012 3:30am May 14, 2012 3:30am
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
Thank you!
I'm happy to hear that it helps
 
 
  • Post #7
  • Quote
  • May 14, 2012 3:34am May 14, 2012 3:34am
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
On each chart you must put the EA separately
 
 
  • Post #8
  • Quote
  • May 19, 2012 4:58am May 19, 2012 4:58am
  •  recidiviste
  • | Commercial Member | Joined May 2009 | 777 Posts
one question pls

in my line is this the good imput ?

ea is on chart = true
expert advisor on = true

then imput that on my line correct ????
Attached Image (click to enlarge)
Click to Enlarge

Name: pic01.JPG
Size: 135 KB
BROKENGLISH
 
 
  • Post #9
  • Quote
  • May 20, 2012 9:16am May 20, 2012 9:16am
  •  walrus
  • | Joined Oct 2006 | Status: Member | 31 Posts
I was wondering if a trendline command could be written to cancel open orders if price touches? This would be useful in the event that the an order was missed and price already went to target. The line would have to be vanquished if the buy or sell order was triggered.

Also, sometimes. I am not getting filled when price touches. Is this the slippage setting? I use a 5 digit broker, should my slippage be set to 30.0?

This is very a very useful tool, since I don't want to stare at charts all day and my broker has huge delays sometimes on manually opening and closing positions.

Thank you

Ron
 
 
  • Post #10
  • Quote
  • May 20, 2012 6:22pm May 20, 2012 6:22pm
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
yes its fine
 
 
  • Post #11
  • Quote
  • Edited May 21, 2012 2:28am May 20, 2012 6:35pm | Edited May 21, 2012 2:28am
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
This is very advance version and very powerful
300 lines of code
with trailing stop and random entries and take profits
it get continuing buy sell order for high frequency trades
(ptbuy, pcbuy,ptclose,pcclose ) it means permanently
I dont get the time right now to explain how it works, put practice it
in the strategy tester (the same line description like the
first one)
Attached File(s)
File Type: ex4 TrendLine_EA_v36.ex4   60 KB | 2,298 downloads
 
1
  • Post #12
  • Quote
  • May 20, 2012 6:52pm May 20, 2012 6:52pm
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
Quoting walrus
Disliked
I was wondering if a trendline command could be written to cancel open orders if price touches? This would be useful in the event that the an order was missed and price already went to target. The line would have to be vanquished if the buy or sell order was triggered.

Also, sometimes. I am not getting filled when price touches. Is this the slippage setting? I use a 5 digit broker, should my slippage be set to 30.0?

This is very a very useful tool, since I don't want to stare at charts all day and my broker has huge delays sometimes on manually...
Ignored
when the price touch or close above bellow the line the order is executed
if you want to close the order put another line with ptclose or tclose or close it manually
 
 
  • Post #13
  • Quote
  • May 20, 2012 7:14pm May 20, 2012 7:14pm
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
ladies and gents if you like the automation just voucher for me
 
 
  • Post #14
  • Quote
  • May 20, 2012 7:19pm May 20, 2012 7:19pm
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
another good system is in my other thread at Rookie Discussion
http://www.forexfactory.com/showthread.php?t=293850
 
 
  • Post #15
  • Quote
  • May 21, 2012 2:21am May 21, 2012 2:21am
  •  recidiviste
  • | Commercial Member | Joined May 2009 | 777 Posts
Quoting tranco
Disliked
This is very advance version and very powerful
300 lines of code
with trailing stop and random entries and take profits
it get continuing buy sell order for high frequency trades
(ptbuy, pcbuy,ptclose,pcclose ) it means permanently
I dont get the time right now to explain, put practice it
in the strategy tester (the same line description like the
first one)
Ignored
thanks will test asap
BROKENGLISH
 
 
  • Post #16
  • Quote
  • May 21, 2012 3:18am May 21, 2012 3:18am
  •  recidiviste
  • | Commercial Member | Joined May 2009 | 777 Posts
Quoting tranco
Disliked
yes its fine
Ignored
i just cannot make it work !


but i have already open positions ....

is this the problem ????
BROKENGLISH
 
 
  • Post #17
  • Quote
  • May 21, 2012 3:54am May 21, 2012 3:54am
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
Quoting recidiviste
Disliked
i just cannot make it work !


but i have already open positions ....

is this the problem ????
Ignored


As I told I dont get the time to explain the new EA right now
but it get's many functions from adding in a position to a box trading, TP, repetitively open position
practice it in a demo before use in real account
it is designed for high frequency trade 350 line of codes with internal indicators
its not a strategy or robot it's an automated tool
 
 
  • Post #18
  • Quote
  • May 21, 2012 4:00am May 21, 2012 4:00am
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
for correct use of the EA's to keep over night position you need vps server in case that your pc fails
 
 
  • Post #19
  • Quote
  • May 21, 2012 4:11am May 21, 2012 4:11am
  •  tranco
  • | Joined Sep 2010 | Status: Member | 714 Posts
dont forget when you put orders with out distinguishing the size of the order to put “-”
fx touch close there it will be tclose-1 just close 1 lot or tclose- close everything in case of buy
you must specify the size
 
 
  • Post #20
  • Quote
  • May 21, 2012 5:45am May 21, 2012 5:45am
  •  recidiviste
  • | Commercial Member | Joined May 2009 | 777 Posts
Quoting tranco
Disliked
dont forget when you put orders with out distinguishing the size of the order to put “-”
fx touch close there it will be tclose-1 just close 1 lot or tclose- close everything in case of buy
you must specify the size
Ignored
-----------------------
sorry i was speaking of the original simple version of the ea

its this one just cannot get trades to open ...

BUT I HAVE ALREADY OPEN POSITIONS ..

is this the reason ???
BROKENGLISH
 
 
  • Platform Tech
  • /
  • Make your trend lines execute your orders
  • Reply to Thread
    • Page 1 2345 6
    • Page 1 234 6
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023