| 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 | ||
![]() | 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 | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ 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 03:59 PM |
| Color Code MA for Range Bar Indicator | snowbird | Coding Forum | 15 | 09-13-2009 02:08 PM |
| EL Code for DeMark's Seq Indicator | telcodude | Open E Cry | 3 | 09-07-2009 08:54 AM |
| Triangle Pattern Indicator Code Not Working | clbradley | Coding Forum | 16 | 04-27-2009 08:36 PM |
| Anyway to Plot an Indicator Value Without Actually Plotting It? | daedalus | Coding Forum | 3 | 04-24-2009 11:43 PM |