StockFetcher Forums · General Discussion · Elder Impulse System<< >>Post Follow-up
LuckyPimp
9 posts
msg #53773
Ignore LuckyPimp
8/2/2007 1:18:16 PM

I wanted to see if I could get some help converting (from tradestation) Dr. Elders impulse system over to StockFetcher code. I figure it might be of use to some people here. So calling all tradestation experts.

[LegacyColorValue = true];

inputs:
Price(close),
maLength(13),
FastMA(12),
SlowMA(26),
Signal(9),
displace(0),
DivPlotWidth(2);

variables:
mavg(0);

Value1 = MACD(Close,FastMA,SlowMA);
Value2 = XAverage(Value1, Signal);
value3 = value1-value2;

SetPlotWidth(1, DivPlotWidth);
if Displace >= 0 or CurrentBar > AbsValue( Displace ) then
begin
mavg = XAverage(price,malength);

if mavg > mavg[1] and value3 > value3[1] then
begin
setplotcolor(1,green);
plotpaintbar[displace] (high,low,"impulse");
end
else if mavg < mavg[1] and value3 < value3[1] then
begin
setplotcolor(1,red);
PlotPaintBar[displace]( High, Low, "impulse" ) ;
end
else begin
setplotcolor(1,blue);
PlotPaintBar[displace]( High, Low, "impulse" ) ;
end ;
end;

curmudgeon
103 posts
msg #53794
Ignore curmudgeon
8/3/2007 1:33:14 AM

Does this look about right?

/* Elder.Impulse.Increase */

show stocks where MACD fast line(12,26) is greater than MACD fast line(12,26) 1 day ago
and EMA(13) is greater than EMA(13) 1 day ago

curmudgeon
103 posts
msg #53804
Ignore curmudgeon
8/3/2007 12:26:28 PM

Sorry I missed a calc in there.

/* Elder.Impulse.Increase */

set{value1, MACD Fast Line(12,26)}
set{value2, CEMA(value1, 9)}
set{value3, value1 - value2}

show stocks where value3 is greater than value3 1 day ago
and EMA(13) is greater than EMA(13) 1 day ago

TheRumpledOne
6,411 posts
msg #53861
Ignore TheRumpledOne
modified
8/5/2007 9:06:36 PM

Fetcher[
/* Elder.Impulse.Increase */

set{value1, MACD Fast Line(12,26)}
set{value2, CEMA(value1, 9)}
set{value3, value1 - value2}

add column MACD Fast Line(12,26)
add column CEMA(value1, 9)

value3 > value3 1 day ago
EMA(13) > EMA(13) 1 day ago

close above 20
average volume(90) above 1000000
]



HTH.


jimmyjazz
102 posts
msg #118176
Ignore jimmyjazz
2/12/2014 3:17:45 PM

Sorry for the necro-bump, but this methodology interests me. However, the filter as posted doesn't trap only those stocks which have had a bar go from blue to green (or red to green) on the last trading day. It simply shows all stocks with a (current) green bar.

Since the theory is that one enters a trade long on the switch to a green bar, it's an incomplete filter. Any thoughts on how to improve it as per above?

bert123
53 posts
msg #118180
Ignore bert123
2/12/2014 5:37:25 PM

Add this to your filter:

close one day ago is below close 2 days ago
close is above close one day ago

StockFetcher Forums · General Discussion · Elder Impulse System<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.