Lukket

Custom ADX Indicator

I use ADX (with +DI and -DI lines) in a ranging market as my primary indicator and I found this indicator (ADXCrosses / see code below...). I would like to know if you can modify this indicator for me.

Trading Rule: 1) DI line crosses above other DI line, and 2) DI line crosses 20 threshold line.

I'd like 4 changes / additions if possible.

1) Add pop-up alert to indicator

2) Arrows currently display one candlestick back. Change to current candlestick

3) Move arrows away from candlestick (they sit right on top - hard to see)

4) Add 20 threshold to indicator

FINAL RESULT: ADX crosses and breaks 20 threshold (ALERT). That's it.

Can you do this and how much? I'd like it ASAP. Send me an invoice and I send you payment. Thanks in advance for you efforts.

CODE

//+------------------------------------------------------------------+

//| [url removed, login to view] |

//| Copyright © 2004, MetaQuotes Software Corp. |

//| [url removed, login to view] |

//+------------------------------------------------------------------+

#property copyright "Copyright © 2004, MetaQuotes Software Corp."

#property link "http://www.metaquotes.net"

#property indicator_chart_window

#property indicator_buffers 2

#property indicator_color1 Green

#property indicator_color2 Red

//---- input parameters

extern int ADXcrossesPeriod = 14;

//---- buffers

double ExtMapBuffer1[];

double ExtMapBuffer2[];

//----

double b4plusdi, b4minusdi, nowplusdi, nowminusdi;

int nShift;

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

//---- indicators

SetIndexStyle(0, DRAW_ARROW, 0, 2);

SetIndexArrow(0, 233);

SetIndexBuffer(0, ExtMapBuffer1);

//----

SetIndexStyle(1, DRAW_ARROW, 0, 2);

SetIndexArrow(1, 234);

SetIndexBuffer(1, ExtMapBuffer2);

//---- name for DataWindow and indicator subwindow label

IndicatorShortName("ADXcrosses(" + ADXcrossesPeriod + ")");

SetIndexLabel(0, "ADXcrUp");

SetIndexLabel(1, "ADXcrDn");

//----

switch(Period())

{

case 1: nShift = 1; break;

case 5: nShift = 3; break;

case 15: nShift = 5; break;

case 30: nShift = 10; break;

case 60: nShift = 15; break;

case 240: nShift = 20; break;

case 1440: nShift = 80; break;

case 10080: nShift = 100; break;

case 43200: nShift = 200; break;

}

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custor indicator deinitialization function |

//+------------------------------------------------------------------+

int deinit()

{

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

int limit;

int counted_bars = IndicatorCounted();

//---- check for possible errors

if(counted_bars < 0)

return(-1);

//---- last counted bar will be recounted

if(counted_bars > 0)

counted_bars--;

limit = Bars - counted_bars;

//----

for(int i = 0; i < limit; i++)

{

b4plusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_PLUSDI, i - 1);

nowplusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_PLUSDI, i);

b4minusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_MINUSDI, i - 1);

nowminusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_MINUSDI, i);

//----

if(b4plusdi > b4minusdi && nowplusdi < nowminusdi)

ExtMapBuffer1[i] = Low[i] - nShift*Point;

//----

if(b4plusdi < b4minusdi

Færdigheder: Metahandel

Se mere: custom adx indicator, adx arrows indicator, custom adx, you di it, www red point, send an invoice, red point, n.s. corp, int i, how to send an invoice, corp corp, bar invoice, 233, custom adx indicators, adx indicator, adx custom indicators, adx custom indicator, adx label indicator, www market net, trading indicators, null, net custom software, mq4, metatrader indicators, metaquotes

Om arbejdsgiveren:
( 0 bedømmelser ) Clermont, United States

Projekt-ID: #928373

4 freelancere byder i gennemsnit $36 for dette job

Mikser

I'm ready to get started immediately. Please see PMB for details.

$35 USD på 1 dag
(36 bedømmelser)
6.2
matharpa

HI, I am expert in making EA and CI for MT4. Check PMB for details.

$30 USD in 0 dage
(37 bedømmelser)
5.5
xrustx

Hi, I'm ready to do the job for you, please send the code that I could start.

$50 USD in 0 dage
(42 bedømmelser)
5.4
forexmeter

Please check you [url removed, login to view] a good weekend !

$30 USD in 0 dage
(1 bedømmelse)
1.8