2 MA Strategy

Strategies are published here.

Moderator: admin

Re: 2 MA Strategy

Postby foreveryoung » Mon Aug 03, 2020 6:46 am

Hi Apprentice

Can you implement an option where close on opposite shall work only if position is in profit?
foreveryoung
 
Posts: 38
Joined: Wed Jan 25, 2017 6:25 am

Re: 2 MA Strategy

Postby foreveryoung » Mon Aug 03, 2020 7:23 am

Also, can you implement stop loss at the swing low for long, and swing high for short? This can be done as follows:

- For long, identify all prices from the opening bar back to the bar that last time fast MA crossed below slow MA. Place stop loss at the lowest price
- For short, identify all prices from the opening bar back to the bar that last time fast MA crossed above slow MA. Place stop loss at the highest price

Thank you in advance
foreveryoung
 
Posts: 38
Joined: Wed Jan 25, 2017 6:25 am

Re: 2 MA Strategy

Postby Apprentice » Fri Aug 07, 2020 4:55 am

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

Re: 2 MA Strategy

Postby Apprentice » Mon Aug 10, 2020 8:17 am

2 MA Strategy v3.lua
(137.21 KiB) Downloaded 43 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27560
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 5 guests