Coding help - page 532

 
har:
Hi mladen! Just to know have you kept an eye on it? Thank you very much

Unfortunately error 1114 is an undocumented error code, hence so far could not find what is going on

 

Hi

Could some-one show me where I can alter the coding on the attached indicator, so that I can move the arrows nearer to the bars. At the moment they're halfway to the moon!

Many thanks.

Files:
 

Hello,

i tried several approaches but i can figure out where the problem is.

I tried to build a Histrogrammbar indicator of the Ichimoku cross signals

like tekansen cross or the cloud cross.

(Bar or Band Histogramm like on the bottom of the image).

I build the indicator and like you can see the bars change colors at very strange places,

not where the actual cross happend.

for better visualisation i leaved the first subwindow at line charts.

I hope someone can give me a tip what is wrong here why the signal show up on the wrong place

greetings

here is the code: ichimoku_signalshistogramm1.2.mq4

 
mladen:
Unfortunately error 1114 is an undocumented error code, hence so far could not find what is going on

Thank you anyway mladen

 

Уважаемые Mladen & MrTools !!! Можно в этом индикаторе сделать вертикальные линии в местах пересечения,где я указал на скриншоте ?

Files:
 
trade-or-die:
Hello,

i tried several approaches but i can figure out where the problem is.

I tried to build a Histrogrammbar indicator of the Ichimoku cross signals

like tekansen cross or the cloud cross.

(Bar or Band Histogramm like on the bottom of the image).

I build the indicator and like you can see the bars change colors at very strange places,

not where the actual cross happend.

for better visualisation i leaved the first subwindow at line charts.

I hope someone can give me a tip what is wrong here why the signal show up on the wrong place

greetings

here is the code: ichimoku_signalshistogramm1.2.mq4

It is because some values of ichimoku are shifted - you have to take into account the shift too or else your indicator and ichimoku that you see on chart will never match

 
trade-or-die:
Hello,

i tried several approaches but i can figure out where the problem is.

I tried to build a Histrogrammbar indicator of the Ichimoku cross signals

like tekansen cross or the cloud cross.

(Bar or Band Histogramm like on the bottom of the image).

I build the indicator and like you can see the bars change colors at very strange places,

not where the actual cross happend.

for better visualisation i leaved the first subwindow at line charts.

I hope someone can give me a tip what is wrong here why the signal show up on the wrong place

greetings

here is the code: ichimoku_signalshistogramm1.2.mq4

Trade or die, also there is one coded here: https://www.mql5.com/en/forum/172986/page20 maybe you can check that one out, and see if it helps.

 

Parabolic sar of MA mtf

Hello,

How can I code in an ea :

" Buy if previous dot was Orange and current dot is LimeGreen."

Thanks for help.

Jo

 
Jovager:
Hello,

How can I code in an ea :

" Buy if previous dot was Orange and current dot is LimeGreen."

Thanks for help.

Jo

Jo

You can do something like this :

double currSarSignalUp = iCustom(NULL,0,"Parabolic SAR of ma mtf",0,MaPeriod,MaMethod,MaPrice,AccLimit,AccStep,false,2,0);

double currSarSignalDn = iCustom(NULL,0,"Parabolic SAR of ma mtf",0,MaPeriod,MaMethod,MaPrice,AccLimit,AccStep,false,3,0);

if (currSarSignalUp!=EMPTY_VALUE) // condition for buy

if (currSarSignalDn!=EMPTY_VALUE) // condition for sell

 

Thanks Mladen,

But the EA doesn't work.

What have I missed ?

Thanks for your help.

Jo

Reason: