# AllAverages

This is a discussion on AllAverages within the Trading tools forums, part of the Trading Forum category; Thanks Igorad for your quick Answer I'm sorry, I don't understand the second point with double value. can you explain ...

 Tweet

I'm sorry, I don't understand the second point with double value. can you explain differently please

For the third point I don't see the code on tradestation (do you have it?). For the code you give it seems to be difficult to extrapolate to prorealtime. I will see
I'm not sur to understand, tehre are 3 options ?

if Opt = 0 then JSmooth = Filt0;
if Opt = 1 then JSmooth = Filt1;
if Opt = 2 then JSmooth = Filt2;

Thanks a lot

Zilliq

2. I'm sorry, I don't understand the second point with double value. can you explain differently please
The EMA period usually is an integer value(ex.14), but in this case you should have ability to use fractional values (ex.5.333).

For example : if period = 14 then len = (14 + 5)/3 -1 = 5.3333(3).

I'm not sur to understand, tehre are 3 options ?
Opt=2 will be OK for final smoothing in your case.

ALLAVERAGES_V3.1.ELD you can find here.

Regards,
Igor

3. OK, I understand for the EMA. In fact, you're right. With Prorealtime we can't have decimal with the parameter

For the option and the code I will see it when I come back at home (I'm at work)
Can you explain what is alpha = power(bet,Pow), we don't have this function on PRT ? Thanks a lot

Best wishes

Zilliq

4. Originally Posted by zilliq
OK, I understand for the EMA. In fact, you're right. With Prorealtime we can't have decimal with the parameter

For the option and the code I will see it when I come back at home (I'm at work)
Can you explain what is alpha = power(bet,Pow), we don't have this function on PRT ? Thanks a lot

Best wishes

Zilliq

The function Power(Num, Pow) returns the number raised to the specified power.

Regards,
Igor

5. Hi Zilliq ,

We can do moving exponential like this :

Regards.

p.s. : also we can choose period =decimal.

///variable period = periode moyenne

len = MAX((period + 5.0)/3.0-1,1)

alpha=(2/(len+1))

if barindex >2 then

mm= alpha*customclose + (1-alpha)*mm[1]

endif

return mm as"exponentielle T3. zillig"

6. Ouch not present too on the Prorealtime plateform

Seems to be definitively difficult to code JSmooth on this plateform

I will see how I can do

Thanks a lot

Zilliq

7. Thanks a lot Sohocool I will test it

The "correct" T3 works very well (code above) (needs higher length than "original" T3 )

If you have an idea for the JSmooth, but I affraid it's not possible

have a nice day

Zilliq

8. Hi Zilliq ,

About Jsmooth , i think no problem with Prt :

When you have : power((1 - alpha),2) ,you do (1-alpha)*(1-alpha)
power((1 - alpha),3)............(1-alpha)*(1-alpha)*(1-alpha)

etc.............................

9. Ok sohocool, I haven't well understand

Power (5,3)=5^3

I suppose

Zilliq

10. Hi zilliq,

double x=2.0,y=3.0,z;
z=MathPow(x,y);
Printf(x," to the power of ",y," is ", z);
//Output: 2 to the power of 3 is 8

I have checked the PRT exponantial accept decimal number ,now , you are all right.

Page 3 of 33 First 1 2 3 4 5 13 ... Last

1. ###### ?????????? ????????? MetaTrader 4 build 745 - MQL4 ?????
11-19-2014, 12:16 PM
2. ###### AllAverages indicator for Metatrader 4 build 600 | Newdigital Life
02-16-2014, 09:15 AM
3. ###### All Averages v3 template for MT4 | Newdigital Life
03-05-2013, 03:55 PM
4. ###### AllAverages new version of the indicator | Newdigital Life
03-01-2013, 03:24 PM