logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Kreangast  
#1 Posted : Tuesday, June 16, 2009 5:48:06 PM(UTC)
Kreangast

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 6/7/2009(UTC)
Posts: 9

  • Smoothed Moving Average (SMMA)Smoothed Moving Average (SMMA)
    The first value of this smoothed moving average is calculated as the simple moving average (SMA):

    SUM1 = SUM(CLOSE, N)SMMA1 = SUM1/N
    The second and succeeding moving averages are calculated according to this formula:

    PREVSUM = SMMA(i-1) *NSMMA(i) = (PREVSUM-SMMA(i-1)+CLOSE(i))/N
    Where:
    SUM1 — is the total sum of closing prices for N periods;
    PREVSUM — is the smoothed sum of the previous bar;
    SMMA1 — is the smoothed moving average of the first bar;
    SMMA(i) — is the smoothed moving average of the current bar (except for the first one);
    CLOSE(i) — is the current closing price;
    N — is the smoothing period.

  • Mov(CLOSE,3,E);Mov(CLOSE,5,E);Mov(CLOSE,8,E);Mov(CLOSE,10,E);
    Mov(CLOSE,12,E);Mov(CLOSE,15,E);(Mov(CLOSE,30,E);Mov(CLOSE,35,E);
    Mov(CLOSE,40,E);Mov(CLOSE,45,E);Mov(CLOSE,50,E);Mov(CLOSE,60,E);

  • SMMA formula into.

  • Thanks

  • Kreangast

  • wabbit  
    #2 Posted : Tuesday, June 16, 2009 7:20:32 PM(UTC)
    wabbit

    Rank: Advanced Member

    Groups: Registered, Registered Users, Subscribers, Unverified Users
    Joined: 10/28/2004(UTC)
    Posts: 3,111
    Location: Perth, Western Australia

    Was thanked: 16 time(s) in 16 post(s)
    Kreangast,

    The purpose of the Forum is not to write your codes for you. The forum is designed to assist you to fix mistakes when you write your code or get stuck overcoming a limitation of the coding language or end up results that are far from what you expected. When requesting coding assistance, to get a prompt reply you should post your best attempt at achieving the goal. When it can be seen that you have put in some effort yourself, then, one of the Fourm members will give you their time to help you. "Give a man a fish.... teach a man to fish..." Use the MS Users Manual and the free Equis Formula Primer to guide you along.

    There are a lot of people here who are willing to assist you to write your code, but if you want other people to do all the work for you, then please seek the services of a contract programmer.



    wabbit [:D]

    Kreangast  
    #3 Posted : Tuesday, June 16, 2009 10:50:17 PM(UTC)
    Kreangast

    Rank: Newbie

    Groups: Registered, Registered Users, Subscribers
    Joined: 6/7/2009(UTC)
    Posts: 9

    Hi wabbit

    Thank you, answer busy !

    Friends here to help me write this code, I am grateful to you.

    Kreangast

    09-6-17

    Users browsing this topic
    Guest (Hidden)
    Forum Jump  
    You cannot post new topics in this forum.
    You cannot reply to topics in this forum.
    You cannot delete your posts in this forum.
    You cannot edit your posts in this forum.
    You cannot create polls in this forum.
    You cannot vote in polls in this forum.