| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | How Do I Put an SMA on a Spread Differential on 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. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AB = Plot StyleCloud on MA Ribbon | aaa | Coding Forum | 16 | 01-10-2010 07:32 AM |
| Horizontal Line Plot For Day | nab999 | Coding Forum | 3 | 09-16-2009 09:03 AM |
| Constant Plot Level | PeterBrazel | Coding Forum | 12 | 08-05-2009 12:04 PM |
| Plot Statement Issue | PeterBrazel | Coding Forum | 15 | 08-03-2009 06:23 AM |
| Making TS Plot Wider | daedalus | Coding Forum | 14 | 04-23-2009 10:37 AM |