Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 08-06-2009, 08:55 PM   #1

Join Date: Nov 2008
Location: Kialla
Posts: 55
Ignore this user

Thanks: 16
Thanked 1 Time in 1 Post

MA Slope

I have coded this crude attempt at an MA that changes colours according to the slope. I have merely provided an input for a lookback period and compared the increase/decrease in readings to change the color. Surprisingly it works out better than I expected but I would like more from the indicator.

I am not a mathemetician but thought that somebody out there may either have come across something or could suggest a better means of calculating the slope. The critical issue is when the MA becomes flat. I have set this indicator to provide flat plus two strengths [color] for both up and down.

Any suggestions?
Attached Thumbnails
MA Slope-ma-color.png  
PeterBrazel is offline  
Reply With Quote
Old 08-08-2009, 02:49 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: MA Slope

you can incorporate an ADX into the coloring scheme

Why ADX > 20 Is a Lie + Easy Trading Method
http://www.traderslaboratory.com/for...ding-5839.html
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
PeterBrazel (08-08-2009)
Old 08-14-2009, 09:39 AM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: MA Slope

or incorporate the BWI - BB Band Width Indicator
http://www.traderslaboratory.com/for...ator-5701.html

Tams is offline  
Reply With Quote
Old 08-14-2009, 06:11 PM   #4

Join Date: Nov 2008
Location: Kialla
Posts: 55
Ignore this user

Thanks: 16
Thanked 1 Time in 1 Post

Re: MA Slope

This looks like a great idea. I will play with this concept over the WE and see what I can produce with it.

Thanks once again for your valuable input.
PeterBrazel is offline  
Reply With Quote
Old 08-18-2009, 12:05 AM   #5

Join Date: Nov 2008
Location: Kialla
Posts: 55
Ignore this user

Thanks: 16
Thanked 1 Time in 1 Post

Re: MA Slope

Attached is the output from using just the BB's as suggested. It is very sensitive and looks good so far as it goes but I will need to add some further conditions to improve it.

The BB idea is a great start. Price above Cyan or yellow looks good for long. Price below magenta or yellow for short looks good.

I will play around with it some more as soon as I get the time and will post the end result if there is any interest.

Thanks
Attached Thumbnails
MA Slope-pbmabb.png  
PeterBrazel is offline  
Reply With Quote
The Following User Says Thank You to PeterBrazel For This Useful Post:
Tams (08-18-2009)

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
MA Slope PeterBrazel Coding Forum 19 07-05-2009 11:27 PM
Determine Slope End or Start januson Technical Analysis 11 11-20-2008 04:39 PM

All times are GMT -4. The time now is 01:38 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.