Jump to content

Req: Place your requests for customization of mt4 indicators here....


heisamit

Recommended Posts

REQ: BB MACD INDICATOR AS DOTS

 

okay this is my 4th request for customization of the BB MACD indicator...I just want the dots of the indicator to appear in a straight line......the bollinger band is not needed...

The indicator can be found at this link

 

http://www.4shared.com/file/_wKu29Ow/BB_MACD_v101.html

 

I am only looking for the MACD dots to be represented as dots along a straight line... I donot need the band.....Let me know if thats possible..thanks

 

...while I'm waiting for my broker to open the doors...

http://www.4shared.com/file/mYvE7u7h/BB_MACD_v101_DOT.html

 

Would be interesting to know how you are using all of the indis in your trading

Link to comment
Share on other sites

  • Replies 82
  • Created
  • Last Reply

Top Posters In This Topic

Hi iwjw....

 

Thsts okay.....I am more than happy with all the help I have received from you so far....you have helped me with 3 customisation requests...so am more than happy...

 

Was wondering...would it be possible to have just two color for the stochastics,....red between 80 to 50 and lime between 50 to 80. Ignore the signal line crossovers...Just dots to indicate stochastics by red for candles corresponding to levels between 80 to 50 and lime dots for candle corresponding to levels between 50 to 80...ignore the signal crossover...so only two colors.

If possible would be great...

Am adding a thanks to your post for your time once again...

 

Respect and Regards

heisamit

 

the problem is to track the mode we are in

are we currently comming from 80 going to 50 or the other way round

Link to comment
Share on other sites

"Would be interesting to know how you are using all of the indis in your trading

"

 

Thanks Iwjw...

For the iwjw_bb_macd_v101_dot indicaor...is great... And am adding the much deserved thanks to your post.

I have not yet formulated the rules of engagement for implementing theses indicators yet.... . I am just tired of getting muddled with all the curves and criss cross that the conventional indiators display...Say in case of macd, we are looking for 3 types of signal...first we see where the macd is with reference to the zero line in order to have a bullish / bearish bias, second the signal line crossover and third the divergence. No matter which strategy I use,either I get whipsawed in the market most of the times, or am late in my entry cause I am overannalysing the signals.... I want to keep it simple, and concentrate on making trades when most of the odds are in my favour. I want an easily readable indicator...a red or green dot can help me make up my mind quicker than the annalysis that goes behing studying the indicators curves and figures...which are undoubtedly important, so I request forrum members to not misunderstand me...

I am trying to study the over bought and oversold levels on basis of the unision of multiple indicators in giving a red or green dot...and analyzing it alongside price structure...support line, resistance lines, breakout, congestion etc...

Like I said havent thought the whole thing through yet...but will be glad to share the strategy as soon as I am able to see some light at the end of the tunnel. Since I am not a programmer, wasnt able to customise and get the indicators to work the way I wanted them to...but then you came along and helped me overcome my first hurlde...

Also placing the indicators as dots helps me save a lot of space on the screen which generally gets cluttered when you load 3 or more conventionally designed indicators...

Iwjw, I am gonna update you with my progress as I proceed....since I owe it to you for helping me start my quest..so thanks a million once again

 

Respect and Regards

heisamit

Link to comment
Share on other sites

the problem is to track the mode we are in

are we currently comming from 80 going to 50 or the other way round

 

Iwjw,

 

Thanks for all the efforts you've put ... Your sincere efforts to help is once again highly appreciated, have a great day.

 

Hopefully this thread helps many more members in the forrum , the same way its helped me....

 

Regards and Respect

heisamit

Edited by heisamit
Link to comment
Share on other sites

Indicator modification

 

Hello iwjw this is checkmail and will you be kind to look at the modification at mine post on pg2, also do you code the imarray functions wana add an slope to one bar histogram.:)

 

the problem is to track the mode we are in

are we currently comming from 80 going to 50 or the other way round

Link to comment
Share on other sites

Well this thread certainly worked well for me, thanks to Iwjw...

managed to get

 

 

Moving average in dot format

http://www.4shared.com/file/2iFXc3IP/MA_DOT.html

 

Multi moving average as dots

http://www.4shared.com/file/YsS75_u3/MultiMA_DOT.html

 

 

OSMA as dot

http://www.4shared.com/file/9UhIlI9B/OsMA_Color_DOT.html

 

BBMACD in dot format

http://www.4shared.com/file/mYvE7u7h/BB_MACD_v101_DOT.html

 

I would request other members to put in their customization requests here so that this thread is kept alive and we have a common hub to search for indicator customisation requests and contibutions.

I would also request that whoever benifits with any contributions on this thread, puts a thanks to the post that benifits them, that way it also encourages the programers to contribute...and most importantly cause they desrve it...for their time and efforts..

 

All the above customisations have been done by Iwjw

 

Regards and Respect

heisamit

Edited by heisamit
Link to comment
Share on other sites

please note the quest for the color stochastics indicator in dot format is still on....

In case anyone needs further details on the stochastic customization parameters, please refer to my posts on page 2 and page 3...and for further clarrifications please post, will respond.....

Thanks in advance and everyone whose trying to get this one figured out

 

Regards

heisamit

Edited by heisamit
Link to comment
Share on other sites

Re: non lagdot modification

 

Hello heisamit this is checkmail and you can modify yourself, its easy, Here

 

open the mq4 file in the metaeditor, change the

#property indicator_chart_window -- #property indicator_separate_window

and

below in the code change the

SetIndexStyle(0,DRAW_LINE, STYLE_SOLID,2) -- SetIndexStyle(0,DRAW_LINE, STYLE_DOTS,2)

 

You are good to go:)

 

Hi Guys,

 

Can snyone customize the non lag dot ....to appear as dots in a straight line in a subgraph just like the MA_dot indicator....

heres the link for the non lag dot indicator

http://www.4shared.com/file/MGRXa6oz/nonlagdot.html

 

Regards

heisamit

Link to comment
Share on other sites

Checkmail,

 

Thanks a lot, I am not sure how mql4 coding works...so am gonna try what you told me...thanks for the education...am posting a thanks for your advise.

I tried what you said but I get an error message "style dots variable not defined", could you help please...

 

Regards

heisamit

Edited by heisamit
Link to comment
Share on other sites

re : modification

 

Hello heisamit this is checkmail and check the syntax agian as given code is error proof,

It goes like this as shown below :

 

(DRAW_LINE,SYTLE_DOT, 2) ;

Here drawline is to draw an continued trend and style dot is used as dots instead of lines and 2 is its size of dots.

If it again gives error paste your code here. will rectify it.:)

 

note :mq4 coding is very accurate no error allowed.

Checkmail,

 

Thanks a lot, I am not sure how mql4 coding works...so am gonna try what you told me...thanks for the education...am posting a thanks for your advise.

I tried what you said but I get an error message "style dots variable not defined", could you help please...

 

Regards

heisamit

Link to comment
Share on other sites

just stopping by but no time to code customizing at the moment

It won't work with STYLE_DOT because that allone doesn't make the dots appear in a straight horizontal line

you have to work with arrows, set the value of the indicator buffers to zero where they would have a value <> zero

In case where the buffer value would be zero it has to be set to EMPTY_VALUE

you can see how it works in my _DOT indies

Link to comment
Share on other sites

Hello heisamit this is checkmail and check the syntax agian as given code is error proof,

It goes like this as shown below :

 

(DRAW_LINE,SYTLE_DOT, 2) ;

Here drawline is to draw an continued trend and style dot is used as dots instead of lines and 2 is its size of dots.

If it again gives error paste your code here. will rectify it.:)

 

note :mq4 coding is very accurate no error allowed.

 

Checkmail,

Thanks for your time...I did make the changes and here is the code I have rewritten after the changes

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

//| NonLagDOT.mq4 |

//| Copyright © 2006, TrendLaboratory |

//| http://finance.groups.yahoo.com/group/TrendLaboratory |

//| E-mail: [email protected] |

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

#property copyright "Copyright © 2006, TrendLaboratory"

#property link "http://finance.groups.yahoo.com/group/TrendLaboratory"

 

 

#property indicator_separate_window

#property indicator_buffers 3

#property indicator_color1 Yellow

#property indicator_width1 1

#property indicator_color2 RoyalBlue

#property indicator_width2 1

#property indicator_color3 Red

#property indicator_width3 1

 

 

//---- input parameters

extern int Price = 0;

extern int Length = 20;

extern int Displace = 0;

extern int Filter = 0;

extern int Color = 1;

extern int ColorBarBack = 0;

extern double Deviation = 0;

 

double Cycle = 4;

 

//---- indicator buffers

double MABuffer[];

double UpBuffer[];

double DnBuffer[];

double price[];

double trend[];

 

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

//| Custom indicator initialization function |

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

int init()

{

int ft=0;

string short_name;

//---- indicator line

IndicatorBuffers(5);

SetIndexStyle(DRAW_LINE,STYLE_DOT, 2) ;

SetIndexBuffer(0,MABuffer);

SetIndexStyle(DRAW_LINE,STYLE_DOT, 2) ;

SetIndexBuffer(1,UpBuffer);

SetIndexStyle(DRAW_LINE,STYLE_DOT, 2) ;

SetIndexBuffer(2,DnBuffer);

SetIndexBuffer(3,price);

SetIndexBuffer(4,trend);

IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));

SetIndexArrow(0,159);

SetIndexArrow(1,159);

SetIndexArrow(2,159);

SetIndexArrow(3,159);

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

short_name="NonLagDot("+Length+")";

IndicatorShortName(short_name);

SetIndexLabel(0,"NLD");

SetIndexLabel(1,"Up");

SetIndexLabel(2,"Dn");

//----

SetIndexShift(0,Displace);

SetIndexShift(1,Displace);

SetIndexShift(2,Displace);

 

SetIndexDrawBegin(0,Length*Cycle+Length);

SetIndexDrawBegin(1,Length*Cycle+Length);

SetIndexDrawBegin(2,Length*Cycle+Length);

//----

return(0);

}

 

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

//| NonLagMA_v4 |

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

int start()

{

int i,shift, counted_bars=IndicatorCounted(),limit;

double alfa, beta, t, Sum, Weight, step,g;

double pi = 3.1415926535;

 

double Coeff = 3*pi;

int Phase = Length-1;

double Len = Length*Cycle + Phase;

 

if ( counted_bars > 0 ) limit=Bars-counted_bars;

if ( counted_bars < 0 ) return(0);

if ( counted_bars ==0 ) limit=Bars-Len-1;

if ( counted_bars < 1 )

for(i=1;i<Length*Cycle+Length;i++)

{

MABuffer[bars-i]=0;

UpBuffer[bars-i]=0;

DnBuffer[bars-i]=0;

}

 

for(shift=limit;shift>=0;shift--)

{

Weight=0; Sum=0; t=0;

 

for (i=0;i<=Len-1;i++)

{

g = 1.0/(Coeff*t+1);

if (t <= 0.5 ) g = 1;

beta = MathCos(pi*t);

alfa = g * beta;

//if (shift>=1) price = iMA(NULL,0,Per,Displace,Mode,Price,shift+i);

//else

price = iMA(NULL,0,1,0,MODE_SMA,Price,shift+i);

Sum += alfa*price;

Weight += alfa;

if ( t < 1 ) t += 1.0/(Phase-1);

else if ( t < Len-1 ) t += (2*Cycle-1)/(Cycle*Length-1);

}

 

if (Weight > 0) MABuffer[shift] = (1.0+Deviation/100)*Sum/Weight;

 

if (Filter>0)

{

if( MathAbs(MABuffer[shift]-MABuffer[shift+1]) < Filter*Point ) MABuffer[shift]=MABuffer[shift+1];

}

 

if (Color>0)

{

trend[shift]=trend[shift+1];

if (MABuffer[shift]-MABuffer[shift+1] > Filter*Point) trend[shift]= 1;

if (MABuffer[shift+1]-MABuffer[shift] > Filter*Point) trend[shift]=-1;

if (trend[shift]>0)

{

UpBuffer[shift] = MABuffer[shift];

if (trend[shift+ColorBarBack]<0) UpBuffer[shift+ColorBarBack]=MABuffer[shift+ColorBarBack];

DnBuffer[shift] = 0;

}

if (trend[shift]<0)

{

DnBuffer[shift] = MABuffer[shift];

if (trend[shift+ColorBarBack]>0) DnBuffer[shift+ColorBarBack]=MABuffer[shift+ColorBarBack];

UpBuffer[shift] = 0;

}

}

}

return(0);

}

 

 

I get a strange out put...two set of dots...dont know whaat to make of it, could you please make the corrections....

 

Thanks

 

Regards

heisamit

Link to comment
Share on other sites

Hello everyone, I need a customised support resistance indicator, I would like to for instance take the high and low of

a period, let say between 515 am and 715 am, and take these values for the calculation of my S/R, so it is essential to

be abble to choose these time values .Would it be possible to create such an ea, thank you.

Link to comment
Share on other sites

Hello iwjw this is checkmail and am not taking the delay that much seriously just want to work on optimizing the signals of different indicator.

Actually me think that an text display based on indicator will be better than reading the whole indicator itself.

Also do you know how to add an slope and zero line divider to an bar histogram.Share the code.:)

 

hmmm,

no1 else willing to help?

http://www.4shared.com/file/tsl2azpj/nonlagdot_DOT.html

 

to checkmail:

it's not that I'm ignoring your request for customization, but I currently take the ones where I see at a first glance they will not cost me more than 5 minutes

Link to comment
Share on other sites

Hello shabz this is checkmail and just change the

#property indicator_separate_window code to #property indicator_chart_window, remove the code

#property indicator_minimum 0.0

#property indicator_maximum 1.0,

add few buffers for lines and arrows along with its color in property, it would display on charts.

#property indicator_color1 Yellow

#property indicator_color2 Purple

#property indicator_buffers 1

 

you are good to go with code.:)

 

Sorry to gate crash this thread, but can anyone change this indicator to display on the chart instead of panel below ?

 

http://www.4shared.com/file/kCV3FbZq/FX_Retribution_Alpha_Pro.html

Link to comment
Share on other sites

hmmm,

no1 else willing to help?

http://www.4shared.com/file/tsl2azpj/nonlagdot_DOT.html

 

to checkmail:

it's not that I'm ignoring your request for customization, but I currently take the ones where I see at a first glance they will not cost me more than 5 minutes

 

Hi Iwjw,

 

Thanks a million for your help....You are the coolest...added a thanks to your post.....

 

Respect and Regards

heisamit

Link to comment
Share on other sites

Hello shabz this is checkmail and just change the

#property indicator_separate_window code to #property indicator_chart_window, remove the code

#property indicator_minimum 0.0

#property indicator_maximum 1.0,

add few buffers for lines and arrows along with its color in property, it would display on charts.

#property indicator_color1 Yellow

#property indicator_color2 Purple

#property indicator_buffers 1

 

you are good to go with code.:)

 

I am not sure how many buffers for lines & arrows are required, can you help with the coding ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...