Simple Stop&Reverse expert advisor

Custom MT4 expert advisors published here.

Moderator: admin

Simple Stop&Reverse expert advisor

Postby Alexander.Gettinger » Tue Jun 05, 2012 3:33 pm

At the beginning the EA creates two pending orders:
1. BUYSTOP with the open price (Ask+SAR_Step/2) and stop level (Bid-SAR_Step/2)
2. SELLSTOP with the open price (Bid-SAR_Step/2) and stop level (Ask+SAR_Step/2).

After the opening of any order EA trailing its stop level with the pending order.

SimpleSAR_EA.PNG


Download:
SimpleSAR_EA.mq4
(4.51 KiB) Downloaded 1278 times


TS2/Lua version.
viewtopic.php?f=31&t=69115
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Simple Stop&Reverse expert advisor

Postby fwcolbert » Tue Feb 02, 2016 1:42 am

Hello Can this strategy have Maximum Open trades of 1?
fwcolbert
 
Posts: 8
Joined: Sat Jun 27, 2015 3:54 pm

Re: Simple Stop&Reverse expert advisor

Postby Apprentice » Thu Feb 04, 2016 2:06 am

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

Re: Simple Stop&Reverse expert advisor

Postby Alexander.Gettinger » Thu Feb 14, 2019 10:19 pm

Please try this strategy:
SimpleSAR_EA2.mq4
(8.61 KiB) Downloaded 411 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Simple Stop&Reverse expert advisor

Postby TheGMan » Sun Feb 17, 2019 5:22 pm

Impressive! G/U D1 Default
Attachments
SAR.png
TheGMan
 
Posts: 51
Joined: Sat Feb 16, 2019 5:13 pm

Re: Simple Stop&Reverse expert advisor

Postby Crysita » Sat Oct 19, 2019 11:30 am

Hello!

Would be possible to add to this EA: Trailing_Setp > FreezeLevel
where FreezeLevel =MarketInfo(Symbol(),MODE_FREEZELEVEL) ?

Thank you!
Crysita
 
Posts: 3
Joined: Wed Oct 02, 2019 9:54 am

Re: Simple Stop&Reverse expert advisor

Postby rod777 » Sat Oct 26, 2019 3:29 pm

rod777
 
Posts: 1
Joined: Sat Oct 26, 2019 4:45 am

Re: Simple Stop&Reverse expert advisor

Postby Apprentice » Tue Oct 29, 2019 6:26 am

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

Re: Simple Stop&Reverse expert advisor

Postby Apprentice » Thu Oct 31, 2019 6:35 am

don't understand what needs to be done.
If Trailing_Setp > FreezeLevel then what?
if not Trailing_Setp > FreezeLevel then what?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23176
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple Stop&Reverse expert advisor

Postby Crysita » Sat Nov 02, 2019 1:19 pm

Hi Apprendice!

Sorry I was not clear!

Once it is found out the FreezeLevel the Trailing step would be set to be this value plus some pips:

Trailing_Step=FreezeLevel+ NumPips (that could be an input)

otherwise do not trade.

I hope this clarify the request.

Thank you!
Crysita
 
Posts: 3
Joined: Wed Oct 02, 2019 9:54 am

Next

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 9 guests