MA Trend Strategy

Strategies are published here.

Moderator: admin

MA Trend Strategy

Postby Apprentice » Mon Sep 21, 2020 1:01 pm

EURUSD m1 (09-21-2020 2000).png

Based on request.
viewtopic.php?f=31&t=70451
MA Trend Strategy.lua
(22.44 KiB) Downloaded 312 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Trend Strategy

Postby Nyaelie » Mon Sep 21, 2020 11:40 pm

Hi Apprentice,

Thanks a lot, that's exactly what I needed!
If it's not asking too much, would it be possible to make it into an indicator so it can be traded manually as well? By that I mean an indicator that changes color depending on whether the moving average is in an uptrend or downtrend. I couldn't find it in the codebase, sorry if it's already been done.

E.g:
MA value increases and MA becomes uptrend
- Moving Average line turns green.

MA value decreases and MA becomes downtrend
- Moving Average line turns red

Thanks again, it's super appreciated!
Nyaelie
 
Posts: 15
Joined: Fri Sep 18, 2020 12:19 am


Re: MA Trend Strategy

Postby Nyaelie » Tue Sep 22, 2020 3:10 pm

Hi Apprentice,

That's perfect, thanks! One last thing I was wondering. Is it possible to add to the strategy a way to choose between possible Data/Price Sources?

Like:
- Open
- Close
- High
- Low
- Typical

Thanks!
Nyaelie
 
Posts: 15
Joined: Fri Sep 18, 2020 12:19 am

Re: MA Trend Strategy

Postby Apprentice » Wed Sep 23, 2020 2:12 am

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

Re: MA Trend Strategy

Postby Apprentice » Thu Sep 24, 2020 3:00 am

MA Trend Strategy.lua
(23.14 KiB) Downloaded 280 times

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


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 19 guests