Hello and thank you for reading this request.
This EA is from 2007 and still works. The author hasn't been online since 2008 so I'm hoping someone would be kind enough to modify this for me. I've tried myself but am basically illiterate when it comes to coding.
Here is the original thread with the EA rules and file.
https://www.forexfactory.com/thread/...at-trend-lines
This is the required trendline description as it is now: "Action=Buy Trigger=5 TP=60 SL=30 TS=20 BE=25 Lots= 1.5"
1) Could "Action=Buy Trigger=5" be changed to simply "Buy=5" and "Sell=5"? Or "B=5" and "S=5"? As it is now the description doesn't visually fit into the trendline description box. Works fine, just cumbersome.
2) Also, I noticed that you have to add another zero to all of the functions to get the correct pip amount. So if you want the Trigger, SL, TS, or BE to be 30 pips you have to set it to 300. The "lots" function works as-is.
3) Also, the trailing stop function (TS) takes precedence over the stop loss (SL) function when you make a "buy" but works correctly when you make a "sell". For example, If I set a buy with a SL=200 (20 pips) and a TS=100(10 pips), when the trade activates a trailing stop of 10 pips is instantly set but a stop loss of 20 isn't set at all.
I hope that makes sense and thanks again for considering these potential modifications. I would be more than happy to compensate anyone for their work.
Regards,
-Kurt
This EA is from 2007 and still works. The author hasn't been online since 2008 so I'm hoping someone would be kind enough to modify this for me. I've tried myself but am basically illiterate when it comes to coding.
Here is the original thread with the EA rules and file.
https://www.forexfactory.com/thread/...at-trend-lines
Attached File(s)
EA to open position at TL (2).mq4
14 KB
|
192 downloads
This is the required trendline description as it is now: "Action=Buy Trigger=5 TP=60 SL=30 TS=20 BE=25 Lots= 1.5"
1) Could "Action=Buy Trigger=5" be changed to simply "Buy=5" and "Sell=5"? Or "B=5" and "S=5"? As it is now the description doesn't visually fit into the trendline description box. Works fine, just cumbersome.
2) Also, I noticed that you have to add another zero to all of the functions to get the correct pip amount. So if you want the Trigger, SL, TS, or BE to be 30 pips you have to set it to 300. The "lots" function works as-is.
3) Also, the trailing stop function (TS) takes precedence over the stop loss (SL) function when you make a "buy" but works correctly when you make a "sell". For example, If I set a buy with a SL=200 (20 pips) and a TS=100(10 pips), when the trade activates a trailing stop of 10 pips is instantly set but a stop loss of 20 isn't set at all.
I hope that makes sense and thanks again for considering these potential modifications. I would be more than happy to compensate anyone for their work.
Regards,
-Kurt
Pride always comes before destruction.... -Proverbs 16:18
DARWINEX ZERO All Time Return:
23.4%