Mean indicator (new version)

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Mean indicator (new version)

Postby Nikolay.Gekht » Tue Oct 26, 2010 4:49 pm

Mean indicator was proposed by posurf here viewtopic.php?f=27&t=2369 and was initially developed and presented here: viewtopic.php?f=17&t=2378

The indicator is another version of trend detecting routine with day-wide stop levels.

The indicator shows an average price of all the bars of the current day (the day is since midnight by New York time).

Comparing the previous version, this indicator:

1) The display style is changed from lines to dots, so now the indicator does not "hide" 1-bar switches between red and green as it was in the previous version.

2) The indicator now works correctly on "alive" data, not on historical data only.

3) The indicator code is significantly optimized.

4) "Prev" stream now is the regular price stream, so it can be used in the strategies among Up and Down streams.

Note! Please pay attention that the indicator calculates the average value from the beginning of the day! In case the first candle of the day is not loaded yet, the value of the indicator can change in case more data is loaded. Moreover, that means that the indicator is almost useless for on the default data set (300 bars) for m1 and m5 timeframes.

mean.png


Download:
Mean_dot.lua
(3.09 KiB) Downloaded 1457 times


MT4/MQ4 version
viewtopic.php?f=38&t=64140

The indicator was revised and updated
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Chosen TF version

Postby Nikolay.Gekht » Tue Oct 26, 2010 5:07 pm

The advanced version of the indicator. You can choose timeframe from start of which you want to calculate the average value. For example, you can calculate "1-hour" instead of "since midnight" averages.

Another things is that 1-day is not since midnight by New York time, but since 17:00 EST (when a new trading day begins).

mean_tf.png


download:
MeanTF_dot.lua
(3.52 KiB) Downloaded 1652 times
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Mean indicator (new version)

Postby gnarlyarbitrage » Fri Jul 05, 2013 3:01 pm

I'm requesting that the option to have yearly lines/averages be added as well as the amount of pips price is away from said average, maybe as a different style than the dots.

Thanks!
gnarlyarbitrage
 
Posts: 50
Joined: Thu Jun 20, 2013 1:33 pm

Re: Mean indicator (new version)

Postby Apprentice » Mon Jul 22, 2013 6:56 am

Yearly data source is not available for now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 38821
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Mean indicator (new version)

Postby mjf1288 » Mon Jul 22, 2013 11:43 am

Apprentice wrote:Yearly data source is not available for now.



Could we get the option for a quarterly mean (3 months)?
mjf1288
FXCodeBase: Initiate
 
Posts: 103
Joined: Tue Jul 03, 2012 5:15 am

Re: Mean indicator (new version)

Postby Apprentice » Sat Jul 27, 2013 3:06 am

Quarterly data source is not available also.
We do not have Q1, Q2, Q3, Q4 time frames.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 38821
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Mean indicator (new version)

Postby Apprentice » Sat Jul 29, 2017 9:48 am

The indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 38821
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Mean indicator (new version)

Postby mjf1288 » Thu Mar 13, 2025 7:17 pm

Can we create a strategy for this indicator, very simple logic:

1. price cross/touch- choice of current mean selection or previous mean selection or both
2. direction- long/short
3. stop/limit

:)
mjf1288
FXCodeBase: Initiate
 
Posts: 103
Joined: Tue Jul 03, 2012 5:15 am

Re: Mean indicator (new version)

Postby Apprentice » Sun Mar 16, 2025 3:05 pm

We have added your request to the development list.
Development reference 201
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 38821
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia



Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 88 guests