Trading zones - momentum strategy

Custom MT4 expert advisors published here.

Moderator: admin

Trading zones - momentum strategy

Postby Apprentice » Wed Dec 02, 2020 4:52 am

Based on request.
viewtopic.php?f=27&t=70631


Will trade stocks at market open
Open Long/Open Short/ Both selector is required.

if selected
will open short -above yesterday close price moving DOWN
will open long - below yesterday close price moving UP

if we are moving down or up will be determined by this
UP
The opening of buy position happens once market price reaches X pips higher than opening price

DOWN
The opening of sell position happens once market price reaches X pips lower than opening price

stop/limit/trailing

Trading zones - momentum strategy.mq4
(44.3 KiB) Downloaded 470 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36495
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Trading zones - momentum strategy

Postby Rocco_Rod » Wed Dec 02, 2020 9:20 pm

Thanks Apprentice.

Can you look into the following issue on the attachment please : my instrument (ASX200) has not been priced at 5223 for weeks or months, yet it is at this level that the EA is placing a sell stop order.
According to my broker (pepperstone) & MT4, the last price of ASX200 before today's opening was 6613 (date: 3/12/20).

Remediation : alternatively that level could be input manually on the EA's setup panel. That would also allow the user to execute the EA at other high volatility moment than the market opening [example: central banker speech].

Question: on the EA's setup panel where is the X pips trigger to start "The opening of buy position happens once market price reaches X pips higher than opening price" ? is it the variable called "min distance to order to activate the trailing" ?

Cheers
Attachments
EA bug.png
Rocco_Rod
 
Posts: 27
Joined: Tue Apr 21, 2020 1:10 pm

Re: Trading zones - momentum strategy

Postby Apprentice » Thu Dec 03, 2020 12:33 pm

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

Re: Trading zones - momentum strategy

Postby Rocco_Rod » Sun Dec 06, 2020 6:25 am

The corrected version of the EA does not open (once installed on MT4). Can you check what's going on please ?
Rocco_Rod
 
Posts: 27
Joined: Tue Apr 21, 2020 1:10 pm

Re: Trading zones - momentum strategy

Postby Apprentice » Sun Dec 06, 2020 6:48 am

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


Re: Trading zones - momentum strategy

Postby Rocco_Rod » Wed Dec 09, 2020 9:28 am

Thanks. Kindly correct the following :

On the attached snapshot the EA placed a sell limit order at 6730.5 - i assume it added the input distance to the input entry price. Yet the EA should have placed a sell limit order at 6729.7 instead. Explanation : 'opening price of current M1 candle' minus 'distance' = 6730.2 - 0.5 = 6729.7

Formula in the case of a buy limit order: 'opening price of current M1 candle' plus 'distance'

Cheers
Attachments
EA to adjust.png
Rocco_Rod
 
Posts: 27
Joined: Tue Apr 21, 2020 1:10 pm

Re: Trading zones - momentum strategy

Postby Apprentice » Thu Dec 10, 2020 5:41 am

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


Re: Trading zones - momentum strategy

Postby Rocco_Rod » Mon Dec 14, 2020 7:14 am

Thank you Apprentice.

We are almost done it seems. One issue remains : the EA still places the order based on the level of the 'entry price' input filled on the setup panel, which is not correct. Yet the EA should instead place the order at the level of the 'opening price of current M1 candle' minus or plus 'distance'.

- 'opening price of current M1 candle' minus 'distance' for a sell order
- 'opening price of current M1 candle' plus 'distance' for a buy order

reminder : Sell orders should be placed over the 'entry price' input filled on the setup panel. Buy orders should be placed under the 'entry price' input filled on the setup panel.
Rocco_Rod
 
Posts: 27
Joined: Tue Apr 21, 2020 1:10 pm

Next

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 61 guests