MA Slope indicator

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

MA Slope indicator

Postby Apprentice » Wed Feb 06, 2013 5:14 pm

MA_Slope.png

Shows the slope of MA, in Pips per period.
MASO (in Pips) = ( MA[period]- MA[period-Bar] )
if MASO > Slope then Buy;
if MASO < Slope then Sell;
else Neutral;

MA_Slope.lua
(3.2 KiB) Downloaded 1855 times


The indicator was revised and updated
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Slope indicator

Postby tradecraft » Sat Feb 09, 2013 6:36 pm

I really like this indicator. Could you add the nonlagMA2 as one of the available moving average methods?
tradecraft
 
Posts: 1
Joined: Sat Feb 09, 2013 6:04 pm

Re: MA Slope indicator

Postby Apprentice » Sun Feb 10, 2013 6:37 am

Averages_Slope.png

Try Averages Version.
Averages_Slope.lua
(4.26 KiB) Downloaded 1365 times

Averages_Slope with Alert.lua
(13.14 KiB) Downloaded 971 times


Please, download and install Averages indicator.
viewtopic.php?f=17&t=2430

This indicator will provides Audio / Email Alerts on slope change.

Dec 14, 2015: Compatibility issue Fixed. _Alert helper is not longer needed.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Slope indicator

Postby Alexander.Gettinger » Fri Nov 29, 2013 2:13 pm

MQL4 version of MA Slope indicator: viewtopic.php?f=38&t=60021.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: MA Slope indicator

Postby Taskryr » Fri Jan 31, 2014 10:06 pm

Can we get a correction or explanation for this indicator. If I have the indicator set to 1 slope and 3 bars, my understanding is that the current period line color should be up if the previous three bars average are up, down if the three previous bars are down, and flat if otherwise.

However, it doesn't seem to function that way or else I am misunderstanding what the slope and bars are actually measuring. I say this because the color of the MA for the previous three periods will repaint their colors depending on future bars. I don't understand why. That is, a green bar on my screen will turn red after a few more bars. This is very frustrating. I can understand if the current bar fluctuates colors, but once a period has ended shouldn't the MA color stop fluctuating? Am I missing something?

It is making my backtesting moot since the real-time line fluctuates colors even after the current bar has ended.
Taskryr
 
Posts: 42
Joined: Fri Nov 01, 2013 4:40 pm

Re: MA Slope indicator

Postby Apprentice » Sat Feb 01, 2014 2:49 pm

if MASO > Slope then Buy;
if MASO < Slope then Sell;
else Neutral;

At the beginning of the period, the absolute difference between current and previous values ​​can,
be less than the value of Pip.

If the difference is greater then Pip, positive or negative indication is given.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Averages_Slope.lua

Postby SuperTrader » Fri May 22, 2015 5:14 am

Hi Apprentice. Your "Averages_Slope.lua" indicator above is fantastic (it works fine even on tick charts!). Whenever you have time could you please add in its code (if possible) an audio-alert (custom *.wav) when it changes color (slope-change) which should trigger "Live" (real-time).
I don't normally use your optional setting "End of Turn" in your other alert-enhanced indicators (I know some traders do though), I only trade with the "Live" alerts and I must admit that all these indicators of yours are simply awesome! Many thanks in advance! :)
User avatar
SuperTrader
 
Posts: 84
Joined: Thu May 20, 2010 12:52 pm
Location: Europe

Re: MA Slope indicator

Postby Apprentice » Mon May 25, 2015 5:17 am

Averages_Slope with Alert.lua Added
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Slope indicator

Postby SuperTrader » Wed Jun 10, 2015 2:47 am

The Alert works perfectly (even on tick charts!) :D
Thank you very much for your help on this Apprentice! :)
User avatar
SuperTrader
 
Posts: 84
Joined: Thu May 20, 2010 12:52 pm
Location: Europe

Re: MA Slope indicator

Postby Apprentice » Mon Dec 14, 2015 6:10 am

Dec 14, 2015: Compatibility issue Fixed. _Alert helper is not longer needed.

If you want to use updated version of this indicator,
please make sure to use TS Version 01.14.101415. or higher.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 6 guests