fxcodebase-backup

MA Trend Strategy

Source: https://fxcodebase.com/code/viewtopic.php?f=31&t=70467
Forum: 31 · Topic 70467 · 6 post(s)


MA Trend Strategy

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


Re: MA Trend Strategy

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

MA value decreases and MA becomes downtrend

Thanks again, it’s super appreciated!


Re: MA Trend Strategy

Apprentice · Tue Sep 22, 2020 2:47 am

Try these versions. viewtopic.php?f=17&t=949&hilit=ma+slope viewtopic.php?f=17&t=69003 viewtopic.php?f=17&t=2431


Re: MA Trend Strategy

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:

Thanks!


Re: MA Trend Strategy

Apprentice · Wed Sep 23, 2020 2:12 am

Your request is added to the development list. Development reference 2084.


Re: MA Trend Strategy

Apprentice · Thu Sep 24, 2020 3:00 am

MA Trend Strategy.lua

Try this version.