How to code? - page 340

 
at120:
Hi guys!

An other "interessting" point is, that I have some indis with no vaule.

When I use it on M5 (which is the indi for) I get no value, if I use it with H1,

I get some values!? What I'm doing wrong?

It's the same indi as test, the only thing I changed was the formular of IndicatorOutput (somthing like MACD1 * 23)

Thanks for help and inputs!

Bye, AT

Without a code it is impossible to tell why there is no value

 

Hi Mladen!

Ok, this one for example...

Works on M30 but not on M5?!

BTW: do you have any idea about the "arrow problem"?

Thanks alot and bye, AT

test_indi_2.mq4

Files:
 
at120:
Hi Mladen!

Ok, this one for example...

Works on M30 but not on M5?!

BTW: do you have any idea about the "arrow problem"?

Thanks alot and bye, AT

test_indi_2.mq4

Here you go : test_indi_2_1.mq4

Files:
 

Hi Mladen!

Thanks again!

Works perfect now! ;-)) also learnt to set var to 0!

Do you have any idea about the arrow indi on post 3390?

https://www.mql5.com/en/forum/173219/page226

Thanks alot!

Bye, AT

 
at120:
Hi Mladen!

Thanks again!

Works perfect now! ;-)) also learnt to set var to 0!

Do you have any idea about the arrow indi on post 3390?

https://www.mql5.com/en/forum/173219/page226

Thanks alot!

Bye, AT

I am afraid that I do not understand that question

 

Hi guys,

i m a noob in mq4 but i keep trying to learn this language with ebooks and existing indicators.

I m working on an indicator at this moment but i have a problem to code this:

i would like that my indicators check if the value of the 30th second of the last candle (the candle which is being drawn) is above the value of the Close of the previous candle.

I managed to do it with finished candles...

Anyone has an idea?

Thanks a lot, and sorry for my english

Have a nice day, and of course success with your trades !!!

 

Hi Mladen!

I attched the code from the indi with the arrows, which "doesn't work".

Picture in this post: https://www.mql5.com/en/forum/173219/page226

I get a blue and red arrow at one candle. This shouldn't be, it should

be either blue or red, and only once the signal appears...

Also no arrow should appear if value is in between. e.g. 10.8565

Thanks for your help!

Bye, AT

test_indi_2_arrow.zip

Files:
 
at120:
Hi Mladen!

I attched the code from the indi with the arrows, which "doesn't work".

Picture in this post: https://www.mql5.com/en/forum/173219/page226

I get a blue and red arrow at one candle. This shouldn't be, it should

be either blue or red, and only once the signal appears...

Also no arrow should appear if value is in between. e.g. 10.8565

Thanks for your help!

Bye, AT

test_indi_2_arrow.zip

Your test_indi_2 does not work

First clean that indicator up in order to make it work (from the code I am not able to guess what exactly are you trying to do with that code)

 

Hi Mladen!

Sorry, set the wrong variable... ;-) now it's working...

this indi is an test indi and output of an test neural net...

Output of the neural net tells when to buy or to sell (in theroie ;-)) )

Now I'm trying to translate it to an mql4 indi, where I get an buy/sell arrow... ;-)

Thanks for your support!

Bye, AT

test_indi_2.zip

Files:
 
at120:
Hi Mladen!

Sorry, set the wrong variable... ;-) now it's working...

this indi is an test indi and output of an test neural net...

Output of the neural net tells when to buy or to sell (in theroie ;-)) )

Now I'm trying to translate it to an mql4 indi, where I get an buy/sell arrow... ;-)

Thanks for your support!

Bye, AT

test_indi_2.zip

You do not have a unique criteria for those arrows (criteria is overlapping)

Whenever your ma is = -40.9430533647537, you shall have double arrow

Here is a version that avoids that double arrows but you still should work to clear the criteria : test_indi_2_arrow.mq4

Files: