Coding help - page 234

 
mladen:
I simply can not guess the rule of thumb how the upgrades are done. For example : my real account is still 509 and is not upgraded by my broker. But I have no idea why is to so

Mladen,

thank you man.can you tell me your broker or PM me.I will really appreciate that.

 
wolfsch:
thv4_trix_v1.0.ex4

Hi Mladen

I have a problem with the Trix Indicator . It is hiding the right edge of the chart and i am unable to get it shown background I add a screenshot also.

Please could you help?

Thanks Wolfsch

It may be from the code of the software, the coordinates of the objects are not properly set.You will need a developer to see to that.

 
wolfsch:
thv4_trix_v1.0.ex4

Hi Mladen

I have a problem with the Trix Indicator . It is hiding the right edge of the chart and i am unable to get it shown background I add a screenshot also.

Please could you help?

Thanks Wolfsch

Wolfsch

I guess that the black panel on the right side is there on purpose, but can not tell anything without the source. Also, if you are using new metatrader 4, it still has issues with objects andthat might be an additional cause of such problems

 

Ma with arrows showing if close above or below ma

Good Morning Everybody,

I am surprised that I cannot find a indicator that shows arrows when the close is above or below a ma. Can someone please code this for me. Thank You So Much In Advance!

This will make my week!!

Dave

 
1Dave7:
Good Morning Everybody,

I am surprised that I cannot find a indicator that shows arrows when the close is above or below a ma. Can someone please code this for me. Thank You So Much In Advance!

This will make my week!!

Dave

Use this indicator price cross ma_arrows-alerts.mq4. It can do exactly what you need

 

problem solved

 

Hi all,

can you help me, i want to translate those prorealtime's indicator in metatrader4's indicator

if anyone can do this

CDUR : (var z with default value 8)

z1=dema[9](close)

z2 =dema[19](close)

e= z1 - z2

z3=dema[6](e)

f=z3

REM Détermine les variations journalières

hausse = MAX(0, f - f[1])

baisse = MAX(0, f[1] - f)

REM Calcule la moyenne des gains les jours de hausse

REM et des pertes les jours de baisse

mmHausse = WILDERAVERAGE[z](hausse)

mmBaisse = WILDERAVERAGE[z](baisse)

REM En déduit le RS

RS = mmHausse / mmBaisse

REM Et finalement le RSI de la Zero Lag

CDUR = 100 - 100 / (1 + RS)

a = 85

b = 100

c =0

d =15

REM X up CDUR

if ((CDUR[1] = CDUR[1])) THEN

i = 25

else

i = 0

endif

Rem X Down CDUR Signal

if ((CDUR[1] > 85 ) AND (CDUR <= CDUR[1])) THEN

K = 25

else

K = 0

endif

return CDUR,a,b,c,d, I as "signal up", K as"Signal down"

[/code]

scalper :

[code]

once rr=1

mb=average[20](typicalprice)

k=48

n=(k*2)-4

p=(n/2)-1

h1=DPO[n](high)

moyh=high-h1

hi=(moyh-moyh[1]+(high[p])/n)*n

hi=(round(hi*100))/100

l1=dpo[n](low)

moyl=low-l1

lo=(moyl-moyl[1]+(low[p])/n)*n

lo=(round(lo*100))/100

clo1=dpo[n](close)

moyc=close-clo1

clot=(moyc-moyc[1]+(close[p])/n)*n

clot=(round(clot*100))/100

cond1=(high>high[1] and high>high[2])

cond2=(cond1 and high>hi[46]) and (barindex>bari or rr=-1)

if cond1 and cond2 then

flagg=1

targeth=high

targetl=lo[46]

else

flagg=0

signa=mb

endif

for zz=0 to 45

if clot[45-zz]<targetl and hi[45-zz]<=targeth and flagg=1 then

signa=high+(averagetruerange[20](close))*.5

rr=1

bari=barindex+zz+2

break

elsif hi[45-zz]>targeth then

signa=mb

break

endif

next

condi=(low<low[1] and low<low[2]) and lowbar or rr=1)

if condi then

fflag=1

target1=low

target2=hi[46]

else

fflag=0

siigna=mb

endif

for kk=0 to 45

if clot[45-kk]>target2 and lo[45-kk]>=target1 and fflag=1 then

siigna=low-(averagetruerange[20](close))*.5

rr=-1

bar=barindex+kk+2

break

elsif lo[45-kk]<target1 then

siigna=mb

break

endif

next

if barindex < 100 then

signa=undefined

siigna=undefined

endif

return signa,siigna,mb

thanks

Files:
sans_titre.png  269 kb
 

hi experts

this is 'exhausted bar' indicator code. can anyone tell me what is the logic behind this indicator?

#property indicator_chart_window#property indicator_buffers 2

#property indicator_width1 0

#property indicator_color1 Lime

#property indicator_width2 0

#property indicator_color2 Red

extern int qual=6;

extern int len=30;

extern int Distance = 1;

extern int Countbars=1000;

double Up[];

double Dn[];

double point;

double bs=0;

double index=0;

double bindex=0;

double sindex=0;

double length=0;

double ret=0;

int init() {

if(Digits==3 || Digits==5) {

point=10*Point;

}

else{

point=Point;

}

IndicatorBuffers(2);

SetIndexStyle(0, DRAW_ARROW);

SetIndexBuffer(0, Up);

SetIndexArrow(0,108);

SetIndexStyle(1, DRAW_ARROW);

SetIndexBuffer(1, Dn);

SetIndexArrow(1,108);

return (0);

}

int deinit() {

return (0);

}

int start() {

bool TurnedUp = false;

bool TurnedDown = false;

double highest,lowest;

int i,limit,limit2;

int counted_bars = IndicatorCounted();

if(counted_bars < 0)

return(-1);

limit=Countbars-counted_bars;

if (i> limit2)

limit2= i;

if (limit2 <Countbars-1)

limit =Countbars- 1;

for( i=limit; i>=0; i--) {

if (Close>Close){

bindex=bindex+1;

}

if(Close<Close){

sindex=sindex+1;

}

ret=0;

index=0;

if ((bindex>qual) && (Close=High)) {

index=1;

bindex=0;

ret=-1;

}

if ((sindex>qual) && (Close>Open)&& (Low<= Low)) {

index=-1;

sindex=0;

ret=1;

}

if (ret==1 && i!=0){

Up=Low-Distance*point;

}

if (ret==-1 && i!=0){

Dn=High+Distance*point;

}

}

if (i> limit2)

limit2= i;

return (0);

}

 
debashis:
hi experts

this is 'exhausted bar' indicator code. can anyone tell me what is the logic behind this indicator?

#property indicator_chart_window#property indicator_buffers 2

#property indicator_width1 0

#property indicator_color1 Lime

#property indicator_width2 0

#property indicator_color2 Red

extern int qual=6;

extern int len=30;

extern int Distance = 1;

extern int Countbars=1000;

double Up[];

double Dn[];

double point;

double bs=0;

double index=0;

double bindex=0;

double sindex=0;

double length=0;

double ret=0;

int init() {

if(Digits==3 || Digits==5) {

point=10*Point;

}

else{

point=Point;

}

IndicatorBuffers(2);

SetIndexStyle(0, DRAW_ARROW);

SetIndexBuffer(0, Up);

SetIndexArrow(0,108);

SetIndexStyle(1, DRAW_ARROW);

SetIndexBuffer(1, Dn);

SetIndexArrow(1,108);

return (0);

}

int deinit() {

return (0);

}

int start() {

bool TurnedUp = false;

bool TurnedDown = false;

double highest,lowest;

int i,limit,limit2;

int counted_bars = IndicatorCounted();

if(counted_bars < 0)

return(-1);

limit=Countbars-counted_bars;

if (i> limit2)

limit2= i;

if (limit2 <Countbars-1)

limit =Countbars- 1;

for( i=limit; i>=0; i--) {

if (Close>Close){

bindex=bindex+1;

}

if(Close<Close){

sindex=sindex+1;

}

ret=0;

index=0;

if ((bindex>qual) && (Close=High)) {

index=1;

bindex=0;

ret=-1;

}

if ((sindex>qual) && (Close>Open)&& (Low<= Low)) {

index=-1;

sindex=0;

ret=1;

}

if (ret==1 && i!=0){

Up=Low-Distance*point;

}

if (ret==-1 && i!=0){

Dn=High+Distance*point;

}

}

if (i> limit2)

limit2= i;

return (0);

}

Looks like some variation of TD sequential (first part is exactly the same, second part is different). So more info on TD sequential : practical technical analysis: Tom Demark Sequential

 

hello guys, does any of you know a indi/ea that can do:

create an offline chart that shows only the main trading time of an index (like dax or s&p), and not an 24 hour chart. Would be great, if it would have starting time and ending time and timeframe(1min, 5min...60min) as an input.

why? because drawing trendlines on an 24 hour-chart where 16 hours do not have real volume doesn´t make much sense imho...

maybe one of you can change the code of an renko/rangebar ea or indicator to do that. I tried, but that is far beyond my coding skills.

Reason: