EA - Close All Positions After X Amount Of Hrs With X Amount Of Pips*

To add comments, please log in or register
forexvegan
50
forexvegan  

Good afternoon Ladies and Gentlemen,

I am looking for a EA that will close all my positions (could be different currencies) after "X" amount of hours with "X" of pips.

I should be able to choose how many hours after a trade/ticket is open and how many pips I want before it closes all the positions automatically.

I should be able to attach the EA to any chart, and it will look for any ticket that is open and base the set amount of hours on when the trades/tickets were opened, not when I placed or turned on the EA. Should not matter what chart the EA is thrown on.

The reason for this is because sometimes I have an EA or I manually trade late at night or I do both and have multiple positions available, and if I set my TP to 100 pips. If it has been 14 hours since the trade/ticket has been opened, I will settle for 20 pips so I can open another trade. I would like to do this automatically because I don't have the time to always be on the computer.

After 13.5 hours if my trade is +90 pips it should not close

After 14 hours if my trade is -10 it should not close.

After 14 hour if my trade is +18 pips it should not close

After 14 hours if my trade is +20 pips, all positions that are opened will close

EA Settings:

MaxHourPoisitionsOpened - X

MinProfitForMaxHourPositions - X

If anyone could help, I have a few more EA's that I need coded that I can pay for. This one is not as complicated. Please help, as I know many people would love this EA and would help them in the long run. Many thanks in advance.

Charles

Metaneural Expert Advisor
148
Metaneural Expert Advisor  
Files:
forexvegan
50
forexvegan  
metaneural ea:
I think this is what you need

https://www.mql5.com/en/forum/176995

swiss_army_ea_v1-51.zip

The SwissArmy is a great EA along with a great coder, but it is not what I need. The EA requires a time constraint based on a certain time of the day. I am looking for a time based on when the position was opened. Thank you as I have already tried this route.

forexvegan
50
forexvegan  

I have taken a look at the Swiss Army before and it is a great EA along with a great programmer. I wish I would be able to use this but the time constraint is based on a time of the day when al the positions will be closed. I need the time to be based on the set amount of hours a trade can be opened based on the time the order was opened. Than you for your suggestion as I have already tried this route.

forexvegan
50
forexvegan  

Can anyone take a look at the attached EA. I am not a coder and I am sure you can tell by looking at this. I am trying my hardest. The attached EA closes all trades based on Profit an Account Reaches. For example $300, etc. Can anyone help me code it so that it closes all positions once each position has reached a certain amount of pips. I still need to code in the set amount of hours a trade can be opened based on the time the order was opened, not a certain time of the day. I have worked all day on this, and just need some help before I can start the next process. Anything would be appreciated. Thank you.

Files:
forexvegan
50
forexvegan  

Is anyone still using the Swiss Army EA? I am wondering if I have 10 trades all with a TP of 100 and SL of 100, and 5 of the 10 trades hit the TP or SL and 5 are still open can I use the Swiss Army Ea to manage these order. Lets say I opened all these trades (At the same time at 12PM) and then I want all the remaining orders to be closed 8 hours later (8PM) only if they are in profit of 10 pips. Can I use the Swiss Army EA. I am not sure what my settings are.

When loading the Swiss Army EA I have changed the following settings:

Symbol Specific - False

RequireAllConditions - True

Time_Activation - True

Time_Hour - ?????

Time_Minute - ?????

MaxProfit_Pip - 10

CloseOrders - True

What confuses me is that I have tired setting the time I want the open orders to close when in profit of 10 pips to my local time (CST), GMT time, or Alpari Broker time GMT +2, but none have worked. Is there something else I am doing wrong.

Can I get the orders to close if the orders are open after a certain amount of hours with a 10 pip profit? Is it possible with the Swiss Army EA with the settings I have done.

Please let me know. Looking forward to your response. Thanks.

Charles

metaneural ea:
I think this is what you need

https://www.mql5.com/en/forum/176995

swiss_army_ea_v1-51.zip
To add comments, please log in or register