NexusFi: Find Your Edge


Home Menu

 





Divergence Indicator - Alert


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Davidgm with 4 posts (1 thanks)
    2. looks_two Rockford with 2 posts (1 thanks)
    3. looks_3 Shaban with 2 posts (1 thanks)
    4. looks_4 casey44 with 1 posts (0 thanks)
    1. trending_up 4,894 views
    2. thumb_up 3 thanks given
    3. group 4 followers
    1. forum 11 posts
    2. attach_file 1 attachments




 
Search this Thread

Divergence Indicator - Alert

  #1 (permalink)
 Rockford 
West Branch, Mi, USA
 
Experience: Intermediate
Platform: Sierra Chart
Broker: TradePro/TransAct
Trading: NQ, CL
Posts: 59 since Nov 2012
Thanks Given: 10
Thanks Received: 11

Hi,

I was wondering if anyone could help me out, and add an alert to the attached indicator? The indicator is fantastic.

Thanks,
Rockford

Attached Files
Elite Membership required to download: PLOTDIVERGENCE V1.1.ELD
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
28 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #3 (permalink)
 
paps's Avatar
 paps 
SF Bay Area + CA/US
 
Experience: None
Platform: TS, TOS, Ninja(Analytics)
Trading: NQ CL, ES when volatile mrkts
Posts: 1,739 since Oct 2011
Thanks Given: 2,176
Thanks Received: 1,726


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.

Not sure if above helps

Reply With Quote
  #4 (permalink)
 
casey44's Avatar
 casey44 
Louisville KY
 
Experience: Beginner
Platform: NT8
Trading: micros
Frequency: Daily
Duration: Minutes
Posts: 247 since Jan 2010
Thanks Given: 4,049
Thanks Received: 311


Rockford View Post
Hi,

I was wondering if anyone could help me out, and add an alert to the attached indicator? The indicator is fantastic.

Thanks,
Rockford

@Rockford, If on ninja, might try this ECIDiv, believe it has alerts, have no experience with it myself.


And other variations of it in Search / Attachments / keyword ecidiv

Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 Rockford 
West Branch, Mi, USA
 
Experience: Intermediate
Platform: Sierra Chart
Broker: TradePro/TransAct
Trading: NQ, CL
Posts: 59 since Nov 2012
Thanks Given: 10
Thanks Received: 11

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.

Started this thread Reply With Quote
  #6 (permalink)
 
tradingest's Avatar
 tradingest 
Milan, Italy
 
Experience: Master
Platform: NT8
Trading: Futures, Forex
Posts: 111 since Dec 2014
Thanks Given: 9
Thanks Received: 11


Rockford View Post
Hi,

I was wondering if anyone could help me out, and add an alert to the attached indicator? The indicator is fantastic.

Thanks,
Rockford

If you explain me what do you want, I can help you

Reply With Quote
  #7 (permalink)
Davidgm
Troy, OH
 
Posts: 6 since Mar 2021
Thanks Given: 1
Thanks Received: 1

Hello,

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;


{ ** Copyright © TradeStation Technologies, Inc. All Rights Reserved **
** TradeStation reserves the right to modify or overwrite this analysis technique
with each release. ** }

Thanks,

David

Reply With Quote
  #8 (permalink)
Shaban
Turin + Italy
 
Posts: 194 since Feb 2020
Thanks Given: 24
Thanks Received: 129

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:

https://postimages.org/it/

after inserting the image, you click on the small box to the right of the writing: Direct link for forum, and with: paste, you insert the link here.

Reply With Quote
  #9 (permalink)
Davidgm
Troy, OH
 
Posts: 6 since Mar 2021
Thanks Given: 1
Thanks Received: 1

Hello,

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}

Vars:
HiLo(0),
oSw1Price1(0),
oSw1Price2(0),
oSw1Bar1(0),
oSw1Bar2(0),
id(0),
numBars(0),
NumOfHistoryBars(0);

Arrays:
SwHiVal1[9](0),
SwHiVal2[9](0),
SwHiDate[9](0),
SwHiTime[9](0),
SwHiBar[9](0),
SwLoVal1[9](0),
SwLoVal2[9](0),
SwLoDate[9](0),
SwLoTime[9](0),
SwLoBar[9](0);

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;

Reply With Quote
Thanked by:
  #10 (permalink)
Shaban
Turin + Italy
 
Posts: 194 since Feb 2020
Thanks Given: 24
Thanks Received: 129


Hi,

this site: https://postimages.org/it/

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.

For Davidgm: you have a P.M.

Reply With Quote
Thanked by:




Last Updated on November 3, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts