Good EA exit strategies

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Good EA exit strategies

Postby kwakugyau » Sun Jul 12, 2020 11:23 pm

I will like to get a code to use in exiting a trade.
Any good strategies code will help.
Thank you.
kwakugyau
 
Posts: 34
Joined: Sun Jul 12, 2020 7:26 pm

Re: Good EA exit strategies

Postby Apprentice » Mon Jul 13, 2020 8:20 am

Choose one.
A) exit strategy template
B) do you have some rules in mind
C) any exit strategy will do
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Good EA exit strategies

Postby kwakugyau » Mon Jul 13, 2020 11:45 am

A and C.
A good exit strategy template will be great.

B - exit based on RSI, ATR, MACD, one Moving Average
Thank you.
kwakugyau
 
Posts: 34
Joined: Sun Jul 12, 2020 7:26 pm

Re: Good EA exit strategies

Postby kwakugyau » Mon Jul 13, 2020 1:55 pm

A) exit strategy template
That will be great

B) do you have some rules in mind
Exit based on RSI, or ATR, or MACD, or Support and Resistance

C) any exit strategy will do
Any good exit strategy will do as well.
Thank you.
kwakugyau
 
Posts: 34
Joined: Sun Jul 12, 2020 7:26 pm

Re: Good EA exit strategies

Postby Apprentice » Tue Jul 14, 2020 7:16 am

Can you define exit rules for RSI, or ATR, or MACD, or Support and Resistance...
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Good EA exit strategies

Postby kwakugyau » Tue Jul 14, 2020 11:46 am

RSI
Exit long when RSI > 70
Exit short when RIX < 30

ATR
Two methods:
Exit when the price touches the indicator line. For example, get out of a long trade when the price drops below the rising ATR Stops.
Exit only when the price CLOSES below the ATR Stops on a long trade, or CLOSES above the ATR Stops on a short trade. Once the close occurs, place a stop loss a few cents below the low of that candle for a long trade, or a few cents above the high of that candle for a short trade.

MACD
Exit when there is another signal line crossover, or the slope of the 50-period SMA changes.

Support and Resistance
Exit when it touches (or get close - 10 pips) the identified support or resistance area

Moving Average
Exit long when the price goes below the MA
Exit short when the price goes above the MA

RSI & MA
Long: Exit when RSI < MA
Short: Exit when RSI > MA
kwakugyau
 
Posts: 34
Joined: Sun Jul 12, 2020 7:26 pm

Re: Good EA exit strategies

Postby Apprentice » Wed Jul 15, 2020 10:19 am

Your request is added to the development list.
Development reference 1705.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Good EA exit strategies

Postby Apprentice » Wed Jul 29, 2020 4:49 pm

Support - resistance: what indicator should we use for that?
Attachments
MA_Exit_EA.mq4
(16.14 KiB) Downloaded 191 times
MA_on_RSI.mq4
(2.48 KiB) Downloaded 224 times
MACD Exit EA.mq4
(16.74 KiB) Downloaded 207 times
RSI_MA_Exit_EA.mq4
(16.56 KiB) Downloaded 201 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 8 guests