| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Wanted: ZLEMA for TradeStation I think this is better than HA because it doesn't overshoot. Anyway, here is the formula and if any of you smart guys who use TS can create the ELD, we can all benefit. If it can have the same color code as HA (green up/red down) that would be really helpful EMA = K * ( 2 * PRICE - PRICE.X) + (1 - K) * EMA.1 where... K = 2 / (n + 1) n = Period x = lag = (n - 1) / 2 http://www.geocities.com/user42_kevi...g-Average.html | ||
| |
|
| | #2 | ||
![]() | Re: Wanted: ZLEMA for TradeStation What you have posted is based on the infinite impulse filter (IIF) described by John Ehlers in his 2002 article, "Zero-Lag Data Smoothers." You can just copy and paste and verify the TS code portion in that Ehlers' article. The Moving Average Triangular that is built into TS is another option if you can't get this to work. | ||
| |
|
| The Following User Says Thank You to thrunner For This Useful Post: | ||
Tams (02-13-2009) | ||
| | #3 | ||
![]() | Re: Wanted: ZLEMA for TradeStation Code: Input: Price(Close), Period(13), UpColor(Green), DownColor(Red); Vars: K(0), x(0), EMA(0); K = 2/(Period + 1); x = (Period - 1)/2; if CurrentBar = 1 then EMA = Price else EMA = K * ( 2 * price - price[x]) + (1 - K) * EMA[1]; If EMA > EMA[1] then SetPlotColor(1,UpColor); If EMA < EMA[1] then SetPlotColor(1,Downcolor); Plot1(EMA, "ZLEMA"); | ||
| |
|
| The Following User Says Thank You to sevensa For This Useful Post: | ||
Tams (02-13-2009) | ||
| | #4 | ||
![]() | Re: Wanted: ZLEMA for TradeStation Is it Price * X? Or Price X periods ago? Thanks for your help Derry | ||
| |
|
| | #5 | ||
![]() | Re: Wanted: ZLEMA for TradeStation Price[X] Refers to Price X bars ago. EasyTrader_I | ||
| |
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mark Fishers "ACD Trading Method", Seminar Videos Wanted. | Szymon | Technical Analysis | 91 | 01-31-2011 08:09 PM |
| First Post, New Trader, Help Wanted! | NickTW | Beginners Forum | 13 | 04-05-2008 12:19 PM |
| Wanted: Book Analyzing Bar Charts for Profit | Sledge | Technical Analysis | 2 | 02-27-2008 03:14 PM |
| Just wanted to announce again... | AbeSmith | General Discussion | 2 | 12-03-2007 09:28 PM |
| Tradestation | TinGull | Brokers and Data Feeds | 9 | 01-11-2007 04:29 PM |