Hi Steve,
I have a system that works for me but it would be very helpful if a trend line trader could be added, so it will auto execute when a trendline is touched.
The system is actually pretty simple. It uses a keltner channel and a trendline, which is drawn using the peaks/bottoms within this channel. Then once price breaks out of the channel and also through the drawn trend line it generates a buy/sell opportunity. Now a new trendline is drawn for a price level to execute the trade. This can be a horizontal level, the previous broken line, but also any other line drawn. When this level/line (support resistance) is touched the trade is executed.
I am looking for an EA that executes a trade when a drawn trendline is touched (support and resistance). There are a few of those ea's on the net, but I thought that you could maybe guide me to one, as you're an expert in all that has to do with Empty4 and ea's. Maybe you've made something in the past? I am not a coder myself and I suppose it's not needed to code something new when it's already available, but if it ain't I might want to start coding one.
Thanks.
trend line trading
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: trend line trading
Just because an indi draws a line on a chart doesn't mean an ea can recognise that line. The ea needs to know what the line is called.
It might be, indeed probably is, possible to ascertain which line has been drawn by the latest crap custom abortion (generally know amongst those daft enough to use them as 'custom indicators')but I have learned enough not to get drawn into this game. Unless the custom indi has been coded by one of our resident geniuses, in which case I will spend hours coding anything anybody wants. The CCA you post here wasn't, so I won't.

It might be, indeed probably is, possible to ascertain which line has been drawn by the latest crap custom abortion (generally know amongst those daft enough to use them as 'custom indicators')but I have learned enough not to get drawn into this game. Unless the custom indi has been coded by one of our resident geniuses, in which case I will spend hours coding anything anybody wants. The CCA you post here wasn't, so I won't.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: trend line trading
I just reread your op.
Perhaps you only want an ea that trades following the break of a trendline that you have drawn on your chat and the cca is irrelevant?
There must be a gazillion of them out there.

Perhaps you only want an ea that trades following the break of a trendline that you have drawn on your chat and the cca is irrelevant?
There must be a gazillion of them out there.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
coasty
- Posts: 1
- Joined: Fri Jun 20, 2014 8:01 pm
trend line trading
Hi TU, your post of request for a Trendline EA has been my search for many years... 1 , 2 and on the 3 touch buy/sell, simple as can be... I have had many EA's to do this, most no longer work.
Magic Stick was the one i used the most, its cost me $500 initial, the code to tell the TL is simple. but last few months ago i get a email after the #600 builds came out that the designer was no longer going to upgrade the EA to make it function with the new Empty4 #600 build's.... This was a heart breaker, after all the trying to find an EA to work and then the designer goes south on us. The next news i get is that a new owner took it over an fix the newer #600+ build to work properly. but at an additional cost of $150 yrly charge. starting next year after i complained, they gave me.... SOOO, nothing seems to remain true in this market just like the Fox we chase to entrap. (seems the industry has become that which they LOOK at, The Fox )...
There is another EA : Advanced Autotrading from Trendlines in Empty4 4 - Platinum System with Java Interface FXAlgoTrader Trendline which has a interface of which you put in the info of the Trendlline which will keep you from remembering code, simple as they come and company is still in business and supports there product. product cost is $350. one time charge. The Java interface is worth the money as compared to Magic stick code which was simple but the interface is much eaiser and faster to set the Line's and commands...
May your cup overflow with pips and keep yourself from the Fox's Entrapments .... Shalom
Magic Stick was the one i used the most, its cost me $500 initial, the code to tell the TL is simple. but last few months ago i get a email after the #600 builds came out that the designer was no longer going to upgrade the EA to make it function with the new Empty4 #600 build's.... This was a heart breaker, after all the trying to find an EA to work and then the designer goes south on us. The next news i get is that a new owner took it over an fix the newer #600+ build to work properly. but at an additional cost of $150 yrly charge. starting next year after i complained, they gave me.... SOOO, nothing seems to remain true in this market just like the Fox we chase to entrap. (seems the industry has become that which they LOOK at, The Fox )...
There is another EA : Advanced Autotrading from Trendlines in Empty4 4 - Platinum System with Java Interface FXAlgoTrader Trendline which has a interface of which you put in the info of the Trendlline which will keep you from remembering code, simple as they come and company is still in business and supports there product. product cost is $350. one time charge. The Java interface is worth the money as compared to Magic stick code which was simple but the interface is much eaiser and faster to set the Line's and commands...
May your cup overflow with pips and keep yourself from the Fox's Entrapments .... Shalom
-
rocketman99
- Trader
- Posts: 91
- Joined: Wed Dec 19, 2012 1:19 am
trend line trading
I have some code that I can share. Its not an EA, but can be included in an EA if you wish. I use this code to draw support and resistance lines on a chart that I can then drag up and down. The magic happens using the new event driven stuff that was ported from MQL5 to MQL4. I also save the values in global variables so that you can restart your EA or change timeframes without any issues. My EA then checks the that Bid and Ask are between the globalvar before taking a trade.
Unfortunately I am at work but will upload later when I get home.
Unfortunately I am at work but will upload later when I get home.
-
rocketman99
- Trader
- Posts: 91
- Joined: Wed Dec 19, 2012 1:19 am
trend line trading
Here is some code. It draws a support and resistance line on the chart. If you then drag the lines around, the global vars are updated. In the start() function I then set a bool if the Bid falls within the bands. I use this in an EA to manually set a trading range for an EA.
Code: Select all
int init() {
//--- enable object create events
ChartSetInteger(ChartID(),CHARTEVENT_OBJECT_DRAG,true);
SupportResistance();
}
int start() {
// does price fall within support and resistance horizontal lines set on chart
bool valSupportResistance=(Bid>GlobalVariableGet(Symbol()+"Support") && Bid<GlobalVariableGet(Symbol()+"Resistance"));
if (valSupportResistance) {
..... do trade stuff here
}
}
// darw support resistance lines based on globalvars
void SupportResistance() {
string Support=Symbol()+"Support";
string Resistance=Symbol()+"Resistance";
if(!GlobalVariableCheck(Support)) {
GlobalVariableSet(Support, Bid-Point*1000);
}
if(!GlobalVariableCheck(Resistance)) {
GlobalVariableSet(Resistance, Bid+Point*1000);
}
ObjectCreate(Support, OBJ_HLINE, 0, Time[0], GlobalVariableGet(Support));
ObjectSet(Support, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(Support, OBJPROP_COLOR, Blue);
ObjectSet(Support, OBJPROP_WIDTH, 2);
ObjectCreate(Resistance, OBJ_HLINE, 0, Time[0], GlobalVariableGet(Resistance));
ObjectSet(Resistance, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(Resistance, OBJPROP_COLOR, Red);
ObjectSet(Resistance, OBJPROP_WIDTH, 2);
}
//+------------------------------------------------------------------+
//| ChartEvent function |
//+------------------------------------------------------------------+
void OnChartEvent(const int id, // Event identifier
const long& lparam, // Event parameter of long type
const double& dparam, // Event parameter of double type
const string& sparam) // Event parameter of string type
{
//--- the object has been moved or its anchor point coordinates has been changed
string Support=Symbol()+"Support";
string Resistance=Symbol()+"Resistance";
if(id==CHARTEVENT_OBJECT_DRAG)
{
//Print("The anchor point coordinates of the object with name ",sparam," has been changed");
if(sparam==Support) {
// Print(ObjectGetDouble(0, Support, OBJPROP_PRICE));
GlobalVariableSet(Support, ObjectGetDouble(0, Support, OBJPROP_PRICE));
}
if(sparam==Resistance) {
// Print(ObjectGetDouble(0, Resistance, OBJPROP_PRICE));
GlobalVariableSet(Resistance, ObjectGetDouble(0, Resistance, OBJPROP_PRICE));
}
}
}
-
Agard
- Posts: 1
- Joined: Sun Jun 21, 2015 4:26 am
trend line trading
Has anyone looked on this thread looked at the tipster trendline ea?
http://blog.tipster.ca/p/tipster-trendl ... r-Empty4.html
http://blog.tipster.ca/p/tipster-trendl ... r-Empty4.html