Page 7 of 38
Re: Simple Expert Advisors (EA's) for MT4
Posted: Tue May 02, 2017 6:26 pm
by tradd
mladen wrote: Fri Apr 28, 2017 9:31 pm
Check this (made by Vladimir Khlystov )
Thanks Mladen,
I translate code with Google. There is 6 option (ATR,Fractal,MA,Parabolic,%) for trailing. I didn't understand the last of them .
Is this constant pips ? Sorry for Non Ascii codes.
Code: Select all
extern int delta=0; // îòñòóï îò ğàñ÷åòíîãî óğîâíÿ ñòîïëîññà
Code: Select all
default: // ïî ïóíêòàì
if(tip==POSITION_TYPE_BUY)
{
prc=NormalizeDouble(price-delta*_Point,_Digits);
StringConcatenate(txt,"SL Buy pips ",DoubleToString(prc,_Digits));
}
if(tip==POSITION_TYPE_SELL)
{
prc=NormalizeDouble(price+delta*_Point,_Digits);
StringConcatenate(txt,"SL Sell pips ",DoubleToString(prc,_Digits));
}
break;
}
Re: Simple Expert Advisors (EA's) for MT4
Posted: Tue May 02, 2017 6:55 pm
by mladen
tradd wrote: Tue May 02, 2017 6:26 pm
Thanks Mladen,
I translate code with Google. There is 6 option (ATR,Fractal,MA,Parabolic,%) for trailing. I didn't understand the last of them .
Is this constant pips ? Sorry for Non Ascii codes.
Code: Select all
extern int delta=0; // îòñòóï îò ğàñ÷åòíîãî óğîâíÿ ñòîïëîññà
Code: Select all
default: // ïî ïóíêòàì
if(tip==POSITION_TYPE_BUY)
{
prc=NormalizeDouble(price-delta*_Point,_Digits);
StringConcatenate(txt,"SL Buy pips ",DoubleToString(prc,_Digits));
}
if(tip==POSITION_TYPE_SELL)
{
prc=NormalizeDouble(price+delta*_Point,_Digits);
StringConcatenate(txt,"SL Sell pips ",DoubleToString(prc,_Digits));
}
break;
}
tradd
The way it is written, those ar points not pips
Re: Simple Expert Advisors (EA's) for MT4
Posted: Tue May 02, 2017 7:40 pm
by chirvasamar
It works good!!
I compared the codes, and, as far as I can point out, there is only one single change made by you, a change of a number in iCustom() call. There is any topic I can learn the importance of that position/number in iCustom() ?
Such way, next time, I will not waste your time with such small things....
Thank you!!
Re: Simple Expert Advisors (EA's) for MT4
Posted: Fri May 05, 2017 1:51 am
by alicann
Hello dear mr. mladen and mr. toolls
Never an ea not trade/work on my pc.
Why, do you have any idea?
I've done a lot of experiments. It happened.
Thank you
Re: Simple Expert Advisors (EA's) for MT4
Posted: Fri May 05, 2017 2:15 am
by mladen
alicann wrote: Fri May 05, 2017 1:51 am
Hello dear mr. mladen and mr. toolls
Never an ea not trade/work on my pc.
Why, do you have any idea?
I've done a lot of experiments. It happened.
Thank you
Which EA?
What errors do you get in experts or journals tab of your terminal?
Re: Simple Expert Advisors (EA's) for MT4
Posted: Fri May 05, 2017 2:38 am
by alicann
mladen wrote: Fri May 05, 2017 2:15 am
Which EA?
What errors do you get in experts or journals tab of your terminal?
I trying all ea but result unsuccessful.
I want to see Before I die a working ea on my computer
Re: Simple Expert Advisors (EA's) for MT4
Posted: Fri May 05, 2017 2:42 am
by alicann
For example like this.
Re: Simple Expert Advisors (EA's) for MT4
Posted: Fri May 05, 2017 2:49 am
by alicann
Example 2
Re: Simple Expert Advisors (EA's) for MT4
Posted: Fri May 05, 2017 3:32 am
by mladen
alicann wrote: Fri May 05, 2017 2:49 am
Example 2
Seems that there is a misunderstanding
I did not ask if you get compiler errors. What I asked is whar run-time errors (from experts or journals tabs) you get when you try to run those EAs. Can you please provide that information?
Re: Simple Expert Advisors (EA's) for MT4
Posted: Fri May 05, 2017 3:58 am
by alicann
2017.05.04 20:56:55.738 MACD_Sample2 AUDUSD,H1: initialized
2017.05.04 20:56:55.719 MACD_Sample2 AUDUSD,H1 inputs: TakeProfit=50.0; Lots=0.1; TrailingStop=30.0; MACDOpenLevel=3.0; MACDCloseLevel=2.0; MATrendPeriod=26.0;
2017.05.04 20:56:52.821 Expert MACD_Sample2 AUDUSD,H1: loaded successfully