Page 44 of 158

Re: Coding Help

Posted: Sat Jul 15, 2017 6:59 pm
by tradre
Hello mladen thanks for the reply im still a newbie at coding ,i dont know how to store the break using buffers.I would really appreciate if you would look at my code which i have attached.I used icustom to get buffers from kazi_high_low.
My rules according to the picture i have attached are:
1.The candle breaks previous resistance .
2.if (new resistance is formed) ,check for two bearish candles
3.Arrow is drawn
4.no arrows should afterwards after the first arrow

Dont bother with buy arrows i just need the sell arrows.
i have coded part 2 and 3,the problem is coding part 1 and part 4
Regards,
Tradre

Re: Coding Help

Posted: Sat Jul 15, 2017 8:12 pm
by mladen
tradre wrote: Sat Jul 15, 2017 6:59 pm Hello mladen thanks for the reply im still a newbie at coding ,i dont know how to store the break using buffers.I would really appreciate if you would look at my code which i have attached.I used icustom to get buffers from kazi_high_low.
My rules according to the picture i have attached are:
1.The candle breaks previous resistance .
2.if (new resistance is formed) ,check for two bearish candles
3.Arrow is drawn
4.no arrows should afterwards after the first arrow

Dont bother with buy arrows i just need the sell arrows.
i have coded part 2 and 3,the problem is coding part 1 and part 4
Regards,
Tradre
Try like this
Add the rest of the conditions - they were conflicting - I left only the levels conditions, you have to add the rest and adjust it to work exactly the way you want it but in this code you can see how it is done

Re: Coding Help

Posted: Sat Jul 15, 2017 9:14 pm
by tradre
mladen wrote: Sat Jul 15, 2017 8:12 pm Try like this
Add the rest of the conditions - they were conflicting - I left only the levels conditions, you have to add the rest and adjust it to work exactly the way you want it but in this code you can see how it is done
Thank you very much i have been able to add the rest of the code

Re: Coding Help

Posted: Sun Jul 16, 2017 4:28 pm
by mladen
tradre wrote: Sat Jul 15, 2017 9:14 pm Thank you very much i have been able to add the rest of the code
Happy coding :)

Re: Coding Help

Posted: Mon Jul 17, 2017 8:10 pm
by MIK
can someone please add an alert whenever this indi makes a new support or resistance line
a new s/r shows up = alert

i have no idea about coding so if you can update this version i attached it will be amazing

thanks for your help and time

Re: Coding Help

Posted: Mon Jul 17, 2017 9:23 pm
by pipmagnet
Hello all,
The attached indy will plot arrows but will NOT plat the moving avreage line. Any Idea why?

Re: Coding Help

Posted: Mon Jul 17, 2017 9:37 pm
by mladen
pipmagnet wrote: Mon Jul 17, 2017 9:23 pm StepMA pdf nmc 3.01 mtf + arrows.mq4Hello all,
The attached indy will plot arrows but will NOT plat the moving avreage line. Any Idea why?
Please read this thread : Metatrader 4 build 1090 bug fix ... and do as described - when you do it, it will work as expected

Re: Coding Help

Posted: Mon Jul 17, 2017 10:15 pm
by mrtools
MIK wrote: Mon Jul 17, 2017 8:10 pm can someone please add an alert whenever this indi makes a new support or resistance line
a new s/r shows up = alert

i have no idea about coding so if you can update this version i attached it will be amazing

thanks for your help and time
MIK, would need the original source code, the version you posted is a decompiled version.

Re: Coding Help

Posted: Mon Jul 17, 2017 11:02 pm
by salexes
Hello developers,

please add buffers to these two indicators, so we can get the values of the drawn lines via iCustom. So we can use it in other indicators/expert advisors.

I do not know how to do it myself

Kind regards,
salexes

Re: Coding Help

Posted: Mon Jul 17, 2017 11:07 pm
by MIK
mrtools wrote: Mon Jul 17, 2017 10:15 pm MIK, would need the original source code, the version you posted is a decompiled version.
thanks for the reply i tried to find another file from the internet and attached it here its from forexfactory im not sure if its the same one or different i also found mt5 version if you can edit mt5 version that will be ok too

thanks again