Convert: easyLanguage - page 4

 

Translate from EasyLanguange to MQL4

Chandra Sekhar:
Bolla, sure we would like to see this system is well-optimized for maximum returns.

We have posted a couple of questions observations and problems of the EA.

Will you please respond to those? Thank you.

The EA seems to be good, of course with some smart money management. Subscribers in the forum can contribute to this aspect of the EA once they learn how the EA works.

Without knowing what the EA does and what its inputs do, it is hard to contribute effectively for its optimization. So, can you please give us some explination about the trading philosophy of the EA itself and functions of all its inputs.

Thanks.

-Vivek

Hi GBolla,

It looks like you left this gropu after getting the Easylanguage EA translated by Igorad!

Are you still with this group?

-Vivek

 
igorad:
Hi,

I've finished translate EL code to MT4.

Try to test and optimize this EA.

Igor

Hi Igor,

I just installed your EA, 'VolExExpert_v1.mq4 ' that you have translated from EasyLanguage to MT4 for GBolla.

It seems GBolla is not active in this group. Can you give some explination how the EA works.

Would love to run it on a demo and get a feel for it.

Thank you.

-Vivek

 

Help on converting this Easy Language Code into Metatrader

Anyone can help??

vars: atr(0),longLiqPt(0),shortLiqPt(9999 99),protLongStop(0),protShortStop(0 ),lowestClose4(0),highestClose4(0), bed(0),sed(0),stb(0),sts(0),canTrad e(0);

atr = avgtruerange(24);

lowestClose4 = lowest(close,4);

highestClose4 = highest(close,4);

canTrade = 0;

if(highestClose4 - lowestClose4 < atr) then canTrade = 1;

stb = open of tomorrow + .5*truerange;

sts = open of tomorrow - .5*truerange;

If(canTrade = 1 and entriesttoday(date) = 0) then

begin

buy("pattbuy") tomorrow at stb stop;

sell("pattsell") tomorrow at sts stop;

end;

if(canTrade = 0) then

begin

exitlong("longliq") at sts stop;

exitshort("shrtliq") at stb stop;

end;

Many thanks!!

 
 

Easylanguage to mt4

Hi,

May it please someone to mercifully translate the following Easylanguage codes to Metaquotes.

Thank you in advance.

Trend Bands

Variables: BandDays(28), DevConstant(3.500000);

Variables: keltnerTop(0), keltnerMid(0), keltnerBot(0), expSmoothPrice(0);

Variables: expSmoothRange(0);

Variables: altu(0),altd(0),up(0),down(0),dir(0),n(0),p(0);

IF (CURRENTBAR = 1) THEN

BEGIN

expSmoothPrice = CLOSE ;

expSmoothRange = HIGH-LOW ;

END ELSE

BEGIN

expSmoothPrice = (expSmoothPrice*(BandDays-1)+CLOSE)/BandDays ;

expSmoothRange = (expSmoothRange*(BandDays-1)+(HIGH-LOW))/BandDays ;

END ;

keltnerTop = expSmoothPrice+(expSmoothRange*DevConstant) ;

keltnerMid = expSmoothPrice ;

keltnerBot = expSmoothPrice-(expSmoothRange*DevConstant) ;

if close <= KeltnerMid then altd = 1 else altd = 0;

if altd = 1 and high[1] <= KeltnerMid and close < Low[1] then begin

dir = -1 ;

end;

if close >= KeltnerMid then altu = 1 else altu = 0;

if altu = 1 and low[1] >= KeltnerMid and close > high[1] then begin

dir = 1;

end;

if dir = -1 then setplotcolor(2,magenta);

if dir = 1 then setplotcolor(2,green);

PLOT1 (keltnerTop, "TBand Top") ;

PLOT2 (keltnerMid, "TBand Mid") ;

PLOT3 (keltnerBot, "TBand Bot") ;

Trigger Lines

variables: Length(20), TrigAvg(5), UpColor(green), DnColor(magenta);

Variables: xAvg(0),yAvg(0);

yAvg = TimeSeriesForecast (Length, 0) ;

xAvg = XAverage (yAvg, TrigAvg) ;

PLOT1 (yAvg, "Trigger");

PLOT2 (xAvg, "AverageTSF") ;

IF (PLOT2 >= PLOT1) THEN

BEGIN

SETPLOTCOLOR (1, DnColor) ;

SETPLOTCOLOR (2, DnColor) ;

END ELSE

BEGIN

SETPLOTCOLOR (1, UpColor) ;

SETPLOTCOLOR (2, UpColor) ;

END ;

Plot3(yAvg,"Sy");

Trade Activator

First the TSI Function

Inputs:

Price(NumericSeries), r(NumericSimple), s(NumericSimple),

u(NumericSimple);

Value1= 100*TXAverage(Price-Price[1],r,s,u) ; { Numerator }

Value2=TXAverage(AbsValue(Price-Price[1]),r,s,u) ; { Denominator }

If Value2 0 then TSI = Value1 / Value2

Else TSI = 0;

The Indicator

Inputs: Price(c), r(7), s(27), u(1), SmthLen(7);

Value1= TSI(Price, r, s, u);

Value2= XAverage(TSI(Price, r, s, u), SmthLen);

plot1(value2,"XAverage");

plot2(value2,"SXAverage");

plot3(value1,"TSI");

IF (PLOT1 >= PLOT3) THEN

BEGIN

SETPLOTCOLOR (1, magenta) ;

SETPLOTCOLOR (3, magenta) ;

END ELSE

BEGIN

SETPLOTCOLOR (1, green) ;

SETPLOTCOLOR (3, green) ;

END ;

plot4(value1,"STSI");

plot5(value1,"Histogram");

 

newdigital and codersguru i need your help please

Hi newdigital and codersguru,i have been following both of you and reading alot of posts and threads on this great site, but i need your help with a indicator i need to help me with my trading.The indicator plots HH/LL/HL/LH at extreme turning points, i found the indicator on the Traderslaboratory site under Swing Trading and it was posted by Tams, with easy language code.He said he thinks that there is a mt4 version, but alas i can not find it after much searching on the site,and i was wondering if you know if it exists or can you help me program it for mt4,i have attached a picture of what i need.I think it is a good indicator and would benefit alot of people.So if you could help me i would be truly greatful.The Easy language code is on the TL site but i could not transfer in on to this site as a attachment.I hope you can help me?

Thanking you in advance.,

Pat

Files:
 

Trendiness Indicator

Hi all,

I came across this page that has an interesting indicator, called Trendiness indicator.

Breakout Bulletin - February 2003

The formula is very simple - EasyLanguage:

AbsValue(C - C[NBars])/Average(TrueRange, NBars);

Does anyone know if this exists for MT4? Also, does anyone have any experience with it, I mean how good it is for identifying trends?

Thanks

 

Converting from mql4

Hi all!

I'm finally moving from MetaTrader 4 to MultiCharts.

So I'm in need of a converter from MQL4 to EasyLanguage (or to C++).

There are a couple of indicators and a rather big EA.

Anyone knows of such converter?

 

Code Converter Needed!

I want to convert MQL4 to Easy Language code. How do I do this on this indicator?

Thanks

Files:
jvel1.mq4  7 kb
jvel1_1.ex4  40 kb
 

MT4 to EasyLanguage

Hi guys

Could anyone code the Renko Live Chart with Wicks for TradeStation/Multicharts - eg: In EasyLanguage. It would need to display the wicks in the same way the Metatrader does. I am prepared to pay for a version which does everything I need - any serious coders with previous Metatrader and EasyLanguage experience - please PM me with an estimate of how much you would charge for this service. I would need:

1) Ability to specify box size

2) An option to display wicks

3) Preferable it can be plotted as a chart which strategies can be applied to.

Thanks, hope to hear from you soon if you match the criteria above.

Reason: