| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | MA Slope I have had a bit of a look around and cannot locate where this has been done before. I would have thought someone would have posted one somewhere as the codies out there are very good at this sort of stuff, unlike me. But step by step I guess. Any ideas? | ||
| |
|
| | #2 | ||
![]() | Re: MA Slope | ||
| |
|
| | #3 | ||
![]() | Re: MA Slope {************************ *Peter's MA Slope Indicator**************** ***************** This indicator seeks to plot color changes on an MA indicator according to the slope of an MA. ************************* ************************* ************************* **********} inputs: Price( Close ), Length( 9 ), Displace( 0 ), colourDeltaBar(1), UpColor(blue), DnColor(red), NColor(yellow); variables: var0( 0 ) ; Value1 = AverageFC( Price, Length ) ; Plot1(Value1, "MA Neutral"); {***********Color change criteria*************** } if (Value1 > Value1[2]) then SetPlotColor[colourDeltaBar](1, upColor) else if (Value1 < Value1[2]) then SetPlotColor[colourDeltaBar](1, dnColor); if Displace <= 0 then begin condition1 = Price crosses over var0 ; if condition1 then Alert( "Price crossing over average" ) else begin condition1 = Price crosses under var0 ; if condition1 then Alert( "Price crossing under average" ) ; end ; end; | ||
| |
|
| | #4 | ||
![]() | Re: MA Slope | ||
| |
|
| | #5 | ||
![]() | Re: MA Slope how do you perceive the color change? can you post a mock up? Last edited by Tams; 07-03-2009 at 08:22 PM. | ||
| |
|
| | #6 | ||
![]() | Re: MA Slope A downward sloping MA indicates a downtrend condition. A flat MA indicates an area of congestion. I think the condition that changes the color would have to be one of percentages, that is unless an angle can be defined. Having trouble with attachment. Will include in seperate post. Thanks | ||
| |
|
| | #7 | ||
![]() | Re: MA Slope Last edited by Tams; 07-04-2009 at 12:05 AM. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Determine Slope End or Start | januson | Technical Analysis | 11 | 11-20-2008 04:39 PM |