• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:26am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:26am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Simple Moving Average Vs. Moving Average? 8 replies

Does Moving average actually act as moving S/R ?? 20 replies

Regarding Smoothed Heikin Ashi indicator 0 replies

smoothed moving average for GFT 0 replies

Smoothed out indicators for charting? 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: Smoothed Moving Average for GFT
Cancel

Smoothed Moving Average for GFT

  • Post #1
  • Quote
  • First Post: May 16, 2007 10:28am May 16, 2007 10:28am
  •  iPlayGames
  • | Joined Feb 2006 | Status: Member | 110 Posts
GFT's dealbook charting package does not have smoothed moving average built in. it has instead a modified moving average, but it's not the same thing. therefore I set out to make one. by studying the code for smoothed moving average in MT4, I wrote the following code:

function SMMA;
input s(series), period(number);
result res(series);
vars i(number), tmp(number), l(number), cnt(number), f(number);
begin
f := front(s);
l := f + period - 1;
cnt := back(s);
if l <= cnt then begin
tmp := 0;
for i := f to l do
tmp := tmp + s[i];
res[l] := tmp / period;
for i := l + 1 to cnt do
res[i] := ((res[l]/period)*(period-1) + s[i]) / period;
end;
end.


however it doesn't work properly. I could not figure out why. could some of the more professional gurus here help diagnose this? please ...
  • Platform Tech
  • /
  • Smoothed Moving Average for GFT
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023