Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
It's an Eld...must be for tradestation so I would presume.
Seems you using ninja....in that case...it won't work unless you have tradestation. By default most tradestation indicators will be configurable for alerts.
Thanks you guys, but I don't use Ninjatrader, I use Tradestation's platform. That's why I posted this in the "TradeStation > EasyLanguage Programming" forum.
I found this indicator (ShowMe) & am running into the same problem as the OP. I am trying to build a scanner in TradeStation to find the instances of the divergence & can't seem to get the scanner to pick the instances when the divergence occurs. I can get a scanner to pick up instances of a custom show me that I built to show an ATRbreakout, so I know it is possible. But the PlotDivergence indicator seems to be missing an alert portion. I am going to attach the relevant screenshots to try & better explain what I think my problem is. Not sure if anyone can help me with this? I know this is an old thread, but I thought someone might see it. I tried to manually add the alert message by copying the Easylanguage from the custom one that I built to modify the PlotDivergence one, but evidently I don't know what I am doing. Guess I can't attach images since I don't have enough post, but maybe you can understand what I am trying to convey with the images. Here is the Easy Language from the custom showme that contains the Alert portion that is missing from the PlotDivergence indicator.
{ Search Tag: WA-Custom ShowMe }
inputs:
Criteria( High < High[1] and Low > Low[1] ) [
DisplayName = "Criteria",
ToolTip = "Enter the criteria to be evaluated on each bar. The expression must evaluate to true or false."],
PlotPrice( Close ) [
DisplayName = "PlotPrice",
ToolTip = "Enter the price at which the ShowMe marker is to be plotted."],
AlertMessage( "" ) [
DisplayName = "AlertMessage",
ToolTip = "Enter the text to be displayed when the expression in the Criteria input evaluates to true."];
if Criteria then
begin
Plot1( PlotPrice, !( "CustomSM" ) );
Alert( AlertMessage );
end
else
begin
NoPlot( 1 ); { remove the marker if Criteria is no longer true, intrabar }
end;
Hi,
I wanted to ask you if you can attach the formula of the indicator: Plodivergence in text format, because I have Tradestation 8 and cannot import the .eld files made with tradestation 10.
To attach as many images as you want, without limits, you can use this site:
I tried several replies using the link you suggested. And it must be blocked. I tried attaching the text file to the first reply & inserting the text file in the 2nd reply. I am going to try & insert the text into this reply. Thanks for any help that you can give with the alert!!
Inputs:
PriceHigh(High), { This should be price (high or close)}
PriceLow(Low), { This should be price (low or close)}
Indicator(RSI(Close,5)),{ This is the indicator you want to find divergence in}
Strength(2), { How many bars on left/right to check to determine a high/low}
Length(30), { How many bars back to look for highs and lows}
HistoryBars(3), { Number of highs and lows to look at for divergence (max is 9)}
LineColor(Red), { Color of lines drawn}
LineSize(1), { Size of lines (0=smallest, 7=largest)}
LineOffset(0), { How much (in price) above or below bars to draw lines}
Debug(False); { Plots debug dots}
IF HistoryBars < 1 then
NumOfHistoryBars = 1
else if HistoryBars > 9 THEN
NumOfHistoryBars = 9
else
NumOfHistoryBars = HistoryBars;
if barnumber > Length then begin
HiLo = 1; {look for high pivots }
Value2 = Pivot(Indicator, Length, Strength, Strength, 1, HiLo, oSw1Price2, oSw1Bar2);
if Value2 = 1 and oSw1Bar2 = Strength then begin
oSw1Bar1 = HighestBar(PriceHigh, Strength*2); { maybe use SwingHighBar instead }
IF oSw1Bar1 <> Strength and High[oSw1Bar1] = High[Strength] THEN
oSw1Bar1 = Strength;
oSw1Price1 = PriceHigh[oSw1Bar1];
if Debug then begin
plot1[Strength](high[Strength]+0.25, "DebugHigh1"); {indicator high}
plot2[oSw1Bar1](high[oSw1Bar1]+0.75, "DebugHigh2"); {coresponding price high}
end;
{ push arrays back }
for Value1 = NumOfHistoryBars-1 downto 0 begin
SwHiDate[Value1+1] = SwHiDate[Value1];
SwHiTime[Value1+1] = SwHiTime[Value1];
SwHiVal1[Value1+1] = SwHiVal1[Value1];
SwHiVal2[Value1+1] = SwHiVal2[Value1];
SwHiBar[Value1+1] = SwHiBar[Value1];
end;
{ store parameters of new SwHi into 0-elements of arrays }
SwHiDate[0] = Date[oSw1Bar1];
SwHiTime[0] = Time[oSw1Bar1];
SwHiVal1[0] = PriceHigh[oSw1Bar1];
SwHiVal2[0] = oSw1Price2; { value of indiactor at high point }
SwHiBar[0] = BarNumber;
for numBars = 1 to NumOfHistoryBars begin
if SwHiVal1[numBars] <> 0 and
SwHiBar[numBars] + Length >= BarNumber and
oSw1Price1 > SwHiVal1[numBars] and
oSw1Price2 < SwHiVal2[numBars] then begin
id = TL_New(SwHiDate[numBars], SwHiTime[numBars], SwHiVal1[numBars] + LineOffset,
Date[oSw1Bar1], Time[oSw1Bar1], oSw1Price1 + LineOffset);
TL_SetExtLeft(id, false);
TL_SetExtRight(id, false);
TL_SetColor(id, LineColor);
TL_SetSize(id, LineSize);
end;
end;
end;
HiLo = -1; {look for low pivots }
Value2 = Pivot(Indicator, Length, Strength, Strength, 1, HiLo, oSw1Price2, oSw1Bar2);
if Value2 = 1 and oSw1Bar2 = Strength then begin
oSw1Bar1 = LowestBar(PriceLow, Strength*2); { maybe use SwingLowBar instead }
IF oSw1Bar1 <> Strength and Low[oSw1Bar1] = Low[Strength] THEN
oSw1Bar1 = Strength;
oSw1Price1 = PriceLow[oSw1Bar1];
if Debug then begin
plot3[Strength](low[Strength]-0.25, "DebugLow1"); {indicator low}
plot4[oSw1Bar1](low[oSw1Bar1]-0.75, "DebugLow2"); {coresponding price low}
end;
{ push arrays back }
for Value1 = NumOfHistoryBars-1 downto 0 begin
SwLoDate[Value1+1] = SwLoDate[Value1];
SwLoTime[Value1+1] = SwLoTime[Value1];
SwLoVal1[Value1+1] = SwLoVal1[Value1];
SwLoVal2[Value1+1] = SwLoVal2[Value1];
SwLoBar[Value1+1] = SwLoBar[Value1];
end;
{ store parameters of new SwHi into 0-elements of arrays }
SwLoDate[0] = Date[oSw1Bar1];
SwLoTime[0] = Time[oSw1Bar1];
SwLoVal1[0] = PriceLow[oSw1Bar1];
SwLoVal2[0] = oSw1Price2; { value of indiactor at high point }
SwLoBar[0] = BarNumber;
for numBars = 1 to NumOfHistoryBars begin
if SwLoVal1[numBars] <> 0 and
SwLoBar[numBars] + Length >= BarNumber and
oSw1Price1 < SwLoVal1[numBars] and
oSw1Price2 > SwLoVal2[numBars] then begin
id = TL_New(SwLoDate[numBars], SwLoTime[numBars], SwLoVal1[numBars] - LineOffset,
Date[oSw1Bar1], Time[oSw1Bar1], oSw1Price1 - LineOffset);
TL_SetExtLeft(id, false);
TL_SetExtRight(id, false);
TL_SetColor(id, LineColor);
TL_SetSize(id, LineSize);
end;
end;
end;
end;
is for inserting images, not text, but I have tried now and I cannot insert the images, but I tried inserting an image (with: postimages.org) into another Site, and it worked regularly;
perhaps Future.io does not allow it anymore.