| Technical Analysis The technical discussion forum for traders. |
![]() | | Tweet | |
| | #1 | ||
![]() | How Do I Put an SMA on a Spread Differential Indicator in the Same Plot/code for TS? inputs: DataSeries1( Close of data1 ), DataSeries2( Close of data2 ) ; Plot1( DataSeries1 - DataSeries2, "SprdDiff" ) ; and for the Mov Avg 1 line: inputs: Price( Close ), Length( 9 ), Displace( 0 ) ; variables: Avg( 0 ) ; Avg = AverageFC( Price, Length ) ; if Displace >= 0 or CurrentBar > AbsValue( Displace ) then begin Plot1[Displace]( Avg, "Avg" ) ; end; Just not sure how to paste these together to put them in the same code. Thanks for any help. | ||
| |
|
| | #2 | ||
![]() Join Date: Nov 2007 Location: boonies Posts: 1,178 Thanks: 299
Thanked 299 Times in 213 Posts
Blog Entries: 104 | Re: How Do I Put an SMA on a Spread Differential Indicator in the Same Plot/code for Plot1( DataSeries1 - DataSeries2, "SprdDiff" ) ; Plot2( AverageFC(DataSeries1 - DataSeries2, Length), "SprdAvg" ) ; // or Plot2( AverageFC(Plot1, Length), "SprdAvg" ) ; // or ... hth | ||
| |
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How Do I Put an SMA on a Spread Differential on the Same Plot/code for TS? | clbradley | Coding Forum | 1 | 01-27-2010 04:59 PM |
| Color Code MA for Range Bar Indicator | snowbird | Coding Forum | 15 | 09-13-2009 03:08 PM |
| EL Code for DeMark's Seq Indicator | telcodude | Open E Cry | 3 | 09-07-2009 09:54 AM |
| Triangle Pattern Indicator Code Not Working | clbradley | Coding Forum | 16 | 04-27-2009 09:36 PM |
| Anyway to Plot an Indicator Value Without Actually Plotting It? | daedalus | Coding Forum | 3 | 04-25-2009 12:43 AM |