Page 14 of 71

Re: Step Indicators for MT4

Posted: Mon May 01, 2017 8:18 pm
by mladen
chirvasamar wrote: Sun Apr 30, 2017 2:47 am Thank you, Mladen, it is certainly an idea!
I know very little about codes (mostly from reading yours and MrTools posts on forex-tsd and here) and I think maybe the start would be to adjust iCustom() to call the indicator I want to test.
However, I am not sure how to adjust an EA such way to open a trade when indicator is changing color, and close it when changing color again and to open an opposite trade. And so on.
Would be challenging for me to work on it, but I am willing to do it with some guidance.
Your input will be highly appreciated!
In general all you need to do in the "simple experts" is exactly that : simply adjust the iCustom() and it should work for that kind of a simple test

Re: Step Indicators for MT4

Posted: Mon May 08, 2017 6:14 am
by mrtools
Updated and upgraded version of step rsi posted here: Step rsi ...

Re: Step Indicators for MT4

Posted: Sun May 28, 2017 7:09 pm
by kaneki
mladen wrote: Fri Mar 03, 2017 12:38 am wojtek

Here you go (all defaults, except HA median body used for price at the example)

 
Hi Mladen, can you please add the adaptive option and update this indicator with all latest averages (frama, sdec)
Thanks in advance

Re: Step Indicators for MT4

Posted: Sun Jun 11, 2017 3:09 pm
by GERVASE
Dear code experts:
I saw the StepMA_v1.mq4 code, but i have concern about the the variable smin0,smax0,smin1,smax1, so the smax1 & smin1 are the previous bar value of smax0&smin0? and this code work? for my understanding, should write the code like: smin[shift], smin[shift+1].
Thanks!

Code: Select all

int start()
  {
   int shift,trend;
   double smin0,smax0,smin1,smax1;

   
   for(shift=Bars-1;shift>=0;shift--)
   {	
	if (HighLow>0)
	  {
	  smax0=Low[shift]+2*StepSize*Point;
	  smin0=High[shift]-2*StepSize*Point;
	
	  if(Close[shift]>smax1) trend=1; 
	  if(Close[shift]<smin1) trend=-1;
	  }
	 
	if (HighLow == 0)
	  {
	  smax0=Close[shift]+2*StepSize*Point;
	  smin0=Close[shift]-2*StepSize*Point;
	
	  if (Close[shift]>smax1)  trend=1; 
	  if (Close[shift]<smin1)  trend=-1;
	  }
	 	
	  if(trend>0 && smin0<smin1) smin0=smin1;
	  if(trend<0 && smax0>smax1) smax0=smax1;
		
	  if (trend>0) LineBuffer[shift]=smin0+StepSize*Point;
	  if (trend<0) LineBuffer[shift]=smax0-StepSize*Point;
	  
	  smin1=smin0;
	  smax1=smax0;

Re: Step Indicators for MT4

Posted: Sun Jun 11, 2017 10:56 pm
by GERVASE
hi, code expert, please help to explain the above code , do not understand the smin1 & smax1 variable, thanks

Re: Step Indicators for MT4

Posted: Sun Jun 11, 2017 11:03 pm
by mntiwana
GERVASE wrote: Sun Jun 11, 2017 10:56 pm hi, code expert, please help to explain the above code , do not understand the smin1 & smax1 variable, thanks
Hi GERVASE
I think like these queries "Coding help" thread is more appropriate,thanks

Re: Step Indicators for MT4

Posted: Sun Jun 11, 2017 11:08 pm
by GERVASE
mntiwana wrote: Sun Jun 11, 2017 11:03 pm Hi GERVASE
I think like these queries "Coding help" thread is more appropriate,thanks
hi, mntiwana.
thanks for comment, i will post my question to code help.

Re: Step Indicators for MT4

Posted: Mon Aug 07, 2017 1:19 am
by TRADERSM
mntiwana wrote: Sun Apr 02, 2017 5:42 pm
Hi wojtek
Thanks for taking time,yes you pick it exact
unfortunately the experiment got flopped badly,i shifted 3 bar back and it was looking pretty (first upper picture) as every body analyses on back test or on demo but fail in live,same with me
when i figure out how it will be work actually i noticed till arrows prints on 3 bar back the price already gone ahead of 3 bar in real   (see in lower picture)

   
pls give link of this indicator..........

Re: Step Indicators for MT4

Posted: Mon Aug 07, 2017 4:13 am
by mntiwana
TRADERSM wrote: Mon Aug 07, 2017 1:19 am

pls give link of this indicator..........
Which one you asking ?

Re: Step Indicators for MT4

Posted: Mon Aug 07, 2017 4:19 am
by TRADERSM
mntiwana wrote: Mon Aug 07, 2017 4:13 am
Which one you asking ?
on chart window arrow indicator