Page 1 of 1

MA Trend Strategy

PostPosted: Mon Sep 21, 2020 1:01 pm
by Apprentice
EURUSD m1 (09-21-2020 2000).png

Based on request.
viewtopic.php?f=31&t=70451
MA Trend Strategy.lua
(22.44 KiB) Downloaded 314 times

Re: MA Trend Strategy

PostPosted: Mon Sep 21, 2020 11:40 pm
by Nyaelie
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!

Re: MA Trend Strategy

PostPosted: Tue Sep 22, 2020 2:47 am
by Apprentice

Re: MA Trend Strategy

PostPosted: Tue Sep 22, 2020 3:10 pm
by Nyaelie
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!

Re: MA Trend Strategy

PostPosted: Wed Sep 23, 2020 2:12 am
by Apprentice
Your request is added to the development list.
Development reference 2084.

Re: MA Trend Strategy

PostPosted: Thu Sep 24, 2020 3:00 am
by Apprentice
MA Trend Strategy.lua
(23.14 KiB) Downloaded 282 times

Try this version.