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 testchirvasamar 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!
Re: Step Indicators for MT4
133Hi Mladen, can you please add the adaptive option and update this indicator with all latest averages (frama, sdec)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)
Thanks in advance
Re: Step Indicators for MT4
134Dear 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!
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
135hi, code expert, please help to explain the above code , do not understand the smin1 & smax1 variable, thanks
Re: Step Indicators for MT4
136Hi GERVASEGERVASE 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
I think like these queries "Coding help" thread is more appropriate,thanks
Indicator is just a tool.
Use it only if it can benefit you. Leave it if you don't know how to use it optimally.
Use it only if it can benefit you. Leave it if you don't know how to use it optimally.
Re: Step Indicators for MT4
137hi, mntiwana.mntiwana wrote: Sun Jun 11, 2017 11:03 pm Hi GERVASE
I think like these queries "Coding help" thread is more appropriate,thanks
thanks for comment, i will post my question to code help.
Re: Step Indicators for MT4
138pls give link of this indicator..........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)
If you are not willing to take risk the unusual, you will have to settle for the ordinary.
Don't wait for extraordinary opportunities. Seize common occasions and make them great. Weak men wait for opportunities; strong men make them
Don't wait for extraordinary opportunities. Seize common occasions and make them great. Weak men wait for opportunities; strong men make them
Re: Step Indicators for MT4
139Which one you asking ?
Indicator is just a tool.
Use it only if it can benefit you. Leave it if you don't know how to use it optimally.
Use it only if it can benefit you. Leave it if you don't know how to use it optimally.
Re: Step Indicators for MT4
140on chart window arrow indicator
If you are not willing to take risk the unusual, you will have to settle for the ordinary.
Don't wait for extraordinary opportunities. Seize common occasions and make them great. Weak men wait for opportunities; strong men make them
Don't wait for extraordinary opportunities. Seize common occasions and make them great. Weak men wait for opportunities; strong men make them