Page 115 of 180

Re: Coding Help

Posted: Thu Jul 16, 2020 5:33 pm
by ashish4forex
Hello Mr. tools pls add the following indicator to MTF and Arrow in the chart pls

thank you

Re: Coding Help

Posted: Fri Jul 17, 2020 8:49 am
by Banzai
JNS247 wrote: Wed Jul 15, 2020 8:32 pm JNS
These codes are from BlueRain @ forexfactory
They're easier to read and understand.

I think this indicator repaints.

Re: Coding Help

Posted: Fri Jul 17, 2020 9:34 am
by JNS247
Banzai wrote: Fri Jul 17, 2020 8:49 am

These codes are from BlueRain @ forexfactory
They're easier to read and understand.

I think this indicator repaints.
Thanks will have a go and see if I can manage.
Thanks for all the help

Re: Coding Help

Posted: Fri Jul 17, 2020 10:04 am
by Syllyon
Hello everyone,

I'm new coding Custom Indicators, I coded this days ago, it's kind of simple.
It's funtion is to display the High and Lows of different Timeframes (Daily, Weekly, Monthly and Yearly)

But I can't make it work the way I want, i'm trying to figure out how to:
- Displaying only the input specified on each time TF
- Drawing the lines as TrendLines (with Right-Ray) from when it got the High/Low price (Not as Horizontal lines as I coded)
- Calculating the past Years High/Low's
- Deleting the lines that shares the same price, keeping the higher timeframe one
- And finally, a datetime option for the indicator to calculate past Timeframes H/L from that specific Day.

Hope is not too much to ask, been researching on how to do it myself but no luck. Any coding tips is apreciated.

-Syllyon

Re: Coding Help

Posted: Fri Jul 24, 2020 11:38 pm
by Banzai
JNS247 wrote: Wed Jul 15, 2020 8:32 pm Hello Banzai

It is doing my head in, at one stage I managed to get the button on the chart, now it is nowhere to be found.
Like a challange but not getting this to work
I have used the day_seperator_2_2 code, one difference I noticed was the init and OnInit the start functions are the same and so the deinit, reading the MQL Help reference is just blowing my mind.
it compile without errors
I'll leave it to the pros.
When you have time thanks in advance.
JNS
It doesn't work for me either.
I'm going to ask Mario to do this one.
Hang on.

Re: Coding Help

Posted: Tue Aug 04, 2020 6:37 am
by am7609
Can someone please tell me why does this problem happen
it's zerolag dema from mladen
when I use iDema in just one loop everything is OK but when I use the iDema in the second loop it also changes the value of val in the first loop .

Re: Coding Help

Posted: Tue Aug 04, 2020 7:19 am
by mrtools
am7609 wrote: Tue Aug 04, 2020 6:37 am Can someone please tell me why does this problem happen
it's zerolag dema from mladen
when I use iDema in just one loop everything is OK but when I use the iDema in the second loop it also changes the value of val in the first loop .


If you are wanting a zerolag dema you already have that in the first loop.

Code: Select all

for(i=limit; i>=0; i--)
      {
         double dema1 = iDema(Close[i],Length,i,Bars,0);
         double dema2 = iDema(dema1 ,Length,i,Bars,1);
         val[i] = 2.0*dema1-dema2;
      }

Re: Coding Help

Posted: Tue Aug 04, 2020 1:52 pm
by am7609
mrtools wrote: Tue Aug 04, 2020 7:19 am

If you are wanting a zerolag dema you already have that in the first loop.

Code: Select all

for(i=limit; i>=0; i--)
      {
         double dema1 = iDema(Close[i],Length,i,Bars,0);
         double dema2 = iDema(dema1 ,Length,i,Bars,1);
         val[i] = 2.0*dema1-dema2;
      }
No I want to use it to smooth other variables too, not just price.this code is just for illustration of my problem in another code. when I use zerolag dema more than once in my code to smooth other variables the value of first variable in this case &val also changes.
By the way It works just fine till the price changes

Re: Coding Help

Posted: Tue Aug 11, 2020 4:02 pm
by mulyanto
Dear All
Could you Please make a SnR Line or box (H/L to Body) "WHEN" Highest Candle OUTSIDE the Bollinger Bands, until it's break

Thanks

Re: Coding Help

Posted: Sat Aug 15, 2020 11:03 pm
by hasan.tahir
Dear Coders,

Request your help for attached indicator. If you could please embed a signal (arrow, dot e.t.c) when the red line / curve is almost at the extreme end. Top extreme end is for a down arrow (sell) and bottom end signal would be for a buy. I would like to use this indicator in a EA so would appreciate a buffer value for the arrows.

Many thanks,