Forex Zone - Forex Forum

Convert indicator to trailing stop ea

Discussion started on New EA Coding

  • Newbie
  • Posts: 19
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
Please could you convert this BAT atr trailing stop indicator to a trailing stop EA . the trailing stop should be based on the same logic of this attached BAT atr stop indicator but the trailing stop should be hidden.
Other features are:

..hidden trailing stop loss that is "1 spread"away from BAT atr stop indicator trailing line.
..Trailing start point
...Fixed Hard stop loss/Broker's stop loss
..Breakeven point + break even profit. ..(Here the broker's stop loss is brought to break even plus specified amount of pips.
Thanks a lot



Linkback: https://www.forex.zone/new-ea-coding/26/convert-indicator-to-trailing-stop-ea/129/
#1 - July 30, 2018, 04:30:20 PM
Attachments:

Administrator
  • Hero Member
  • Posts: 5086
  • Points: 29283
  • Likes Received: 5109
  • Reputation: +220/-14
How is this EA supposed to know what orders to manage? For example, do you want to input a certain order number into the EA? Or will the EA simply manage all trades made on the same chart symbol?
#2 - July 30, 2018, 06:35:23 PM

Convert indicator to trailing stop ea in New EA Coding_topic=585

  • Newbie
  • Posts: 19
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
It should manage all trades in the same chart symbol. 
The trailing stop and the partial Takeprofits should be hidden. But the "Breakeven+some pips" SL should be Hard/Broker's SL.
Thanks.
#3 - July 30, 2018, 06:47:47 PM
« Last Edit: July 30, 2018, 06:52:51 PM by Donnuel »

Administrator
  • Hero Member
  • Posts: 5086
  • Points: 29283
  • Likes Received: 5109
  • Reputation: +220/-14
You did not mention anything about partial takeprofits before. This seems totally new. Are you sure this is what you meant? If so, how should it work?

And you want the EA to set regular fixed SL. What if the order already has a SL from another means (eg. already set from you)? Should it override whatever SL is already there?

If you want this new EA to manage all trades made from the same chart, it could interfere with other EA's running. Maybe it would be better to make this EA only manage trades without a magic number set (eg. manual trades) or something else.
#4 - July 30, 2018, 07:11:26 PM

  • Newbie
  • Posts: 19
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
Sorry u can ignore the partial take profit.
About the fixed stop loss, u can ignore that too. I will be placing the initial Stop loss myself since i do manual trading but the ea should be able to take that initial Hard SL to Break even+specified pips once profit reaches a specified amount of pips.
For trades to manage, Yes make the EA to only manage trades without magic number cos all my trades are manual. But it should manage all trades on the chart as I may like to scale in as price progresses. 
Thanks
#5 - July 30, 2018, 07:21:51 PM
« Last Edit: July 30, 2018, 08:56:09 PM by Donnuel »

  • Newbie
  • Posts: 19
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
Greetings great people. I acknowledge your busy schedule in this great work you're doing helping newbie traders. More blessings on you.

Just a gently reminder.  Pls I will like to add alert when the Trailing stop it hit but if it will alter the program you already have, please ignore the alert. 
Thanks a lot.
#6 - August 04, 2018, 11:42:03 AM

  • Starter
  • Posts: 1
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0


I want to  forexfrendy.com
As fully hands free system is it possible
Any body can make it
Help me

Sorry u can ignore the partial take profit.
About the fixed stop loss, u can ignore that too. I will be placing the initial Stop loss myself since i do manual trading but the ea should be able to take that initial Hard SL to Break even+specified pips once profit reaches a specified amount of pips.
For trades to manage, Yes make the EA to only manage trades without magic number cos all my trades are manual. But it should manage all trades on the chart as I may like to scale in as price progresses.
Thanks

#7 - August 04, 2018, 02:41:14 PM

Administrator
  • Hero Member
  • Posts: 5086
  • Points: 29283
  • Likes Received: 5109
  • Reputation: +220/-14


I want to  forexfrendy.com
As fully hands free system is it possible
Any body can make it
Help me
It would be better to post this in it's own section. You can start a new topic next time. More importantly, the website you entered doesn't exist. Double check it since it seems you didn't type it correctly.
#8 - August 04, 2018, 02:46:35 PM
« Last Edit: August 04, 2018, 02:52:29 PM by Admin »

Members:

0 Members and 1 Guest are viewing this topic.