Premium2 468x60 forex
Page 3 of 33 FirstFirst 1 2 3 4 5 13 ... LastLast
Results 21 to 30 of 323
Like Tree68Likes

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 ...

          
   
  1. #21
    Member
    Join Date
    Jul 2013
    Posts
    40
    Thanks Igorad for your quick Answer

    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
    Last edited by zilliq; 08-19-2013 at 11:16 AM.

  2. #22
    Developer igorad's Avatar
    Join Date
    Feb 2013
    Posts
    2,115
    Follow igorad On Twitter Add igorad on Facebook Add igorad on Google+
    Add igorad on Linkedin
    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. #23
    Member
    Join Date
    Jul 2013
    Posts
    40
    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
    Last edited by zilliq; 08-19-2013 at 01:22 PM.

  4. #24
    Developer igorad's Avatar
    Join Date
    Feb 2013
    Posts
    2,115
    Follow igorad On Twitter Add igorad on Facebook Add igorad on Google+
    Add igorad on Linkedin
    Quote Originally Posted by zilliq View Post
    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. #25
    Junior Member sohocool's Avatar
    Join Date
    Mar 2013
    Location
    BELGIUM
    Posts
    28
    Follow sohocool On Twitter Add sohocool on Google+
    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"
    Last edited by sohocool; 08-19-2013 at 02:43 PM.

  6. #26
    Member
    Join Date
    Jul 2013
    Posts
    40
    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. #27
    Member
    Join Date
    Jul 2013
    Posts
    40
    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
    Last edited by zilliq; 08-19-2013 at 02:46 PM.

  8. #28
    Junior Member sohocool's Avatar
    Join Date
    Mar 2013
    Location
    BELGIUM
    Posts
    28
    Follow sohocool On Twitter Add sohocool on Google+
    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. #29
    Member
    Join Date
    Jul 2013
    Posts
    40
    Ok sohocool, I haven't well understand

    Power (5,3)=5^3

    I suppose

    Zilliq
    Last edited by zilliq; 08-19-2013 at 03:46 PM.

  10. #30
    Junior Member sohocool's Avatar
    Join Date
    Mar 2013
    Location
    BELGIUM
    Posts
    28
    Follow sohocool On Twitter Add sohocool on Google+
    Hi zilliq,

    The metatrader power :

    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 FirstFirst 1 2 3 4 5 13 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •