Nicolas

NonLagDot trend indicator

Category: Indicators By: Nicolas Created: December 23, 2016, 4:26 PM
December 23, 2016, 4:26 PM
Indicators
11 Comments
NonLagDot trend indicator

Nonlagdot is an indicator, which gives an interpretation of market trends. Notation of trends is conducted in accordance with dominant market forces.

If the bulls (buyers) are dominant, it will be marked with green dots on a chart. In the case of dominance of the bears (sellers) on the schedule this will be indicated by red dots. Please remind of changing the way the returned values are set on chart (set them to points, not lines) and change the color accordingly to the trend direction.

(description found on internet). Converted from Metatrader4 version by request on forums.

//PRC_NonLagDot | indicator
//23.12.2016
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//Converted from MT4 version

// --- parameters
Price         = customclose
//Length        = 10
//Filter        = 0
//Deviation     = 0
// ---

cCycle= 4
if barindex>Length then
 pi=3.1415926535
 Coeff= 3*pi
 Phase=Length-1
 Len=Length*cCycle + Phase

 Weight=0
 Sum=0
 t=0

 for i =0 to Len-1 do
  g=1.0/(Coeff*t+1)
  if (t<=0.5) then
   g=1
  endif
  beta=Cos(pi*t)
  alfa=g * beta
  pprice = price[i]//average[1](price)[i]
  Sum=Sum+(alfa*pprice)
  Weight=Weight+alfa
  if(t < 1) then
   t=t+(1.0/(Phase-1))
  elsif (t < Len-1)then
   t=t+((2*cCycle-1)/(cCycle*Length-1))
  endif
 next

 if (Weight > 0)  then
  MABuffer=(1.0+Deviation/100)*Sum/Weight
 endif
 if (Filter>0) then
  if(Abs(MABuffer-MABuffer[1]) < Filter*Pointsize) then
   MABuffer=MABuffer[1]
  endif
 endif
endif

return MABuffer

 

Download
Filename: PRC_NonLagDot.itf
Downloads: 269
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

gregus
10 years ago
#

merci nicolas toute ma gratitude est pour toi sa sera bien pratique car je pense ne pas etre le seul a vouloir réalisé ce genre d opération.

bon dimanche

merci

Nicolas
10 years ago
#

Ok merci donc d'ouvrir un sujet spécifique pour cette demande donc :) 

gregus
10 years ago
#

rebonjour nicolas

je ne comprend pas ta demande, je dois crée un post pour demandé que l on crée la video ou pour qu on m explique comment on adapte ?

merci

Nicolas
10 years ago
#

Je vais faire l'indicateur et expliquer comment en même temps dans un sujet de forum. Plus simple et accessible pour le reste de la communauté, et pour référence future. Merci. 

gregus
10 years ago
#

merci nicolas

quel imbécile je suis j aurai du l installé avant de posté ma bêtise et te faire perdre ton temps.

par contre la tu peu m éclairé si je veux l adapté à un gann hilo ou un autre indicateur ?

y a t il ne video qui explique la procedure ?

merci nicolas

 

Nicolas
10 years ago
#

Merci d'ajouter cette requête dans le forum approprié. 

gregus
10 years ago
#

bonjour nicolas

que doit on modifié pour suprimé le dot et le remplacé par la ma pour obtenir la nonlagma originale ?

merci

Nicolas
10 years ago
#

Il suffit de modifier l'indicateur en mode ligne plutôt qu'en point dans ses paramètres. 

ML
ML
10 years ago
#

Thanks a lot Nicolas! I found it on the Internet and I was curious to evaluate it... Thanks again for all your fast replies to everybody on this blog! I really appreciate your work! Merry Christmas! :)

verdi55
10 years ago
#

Looks almost like a conventional moving average (just take lines instead of dots) . The built-in zero-lag MA reacts much faster (at the same period number = Length). What's the difference ? And why is the calculation so complex (calculation for a full DAX 15 min chart - 9 years- takes about 17 minutes) , although the result is conventional ? Is it possible to make money with this indicator ? 

Nicolas
10 years ago
#

Just another indicator in the Library asked by a member of the community. You are right about the fact that this one is not better than any other moving average, it has some interesting parameters though, about filtering. 

You know I now have many friends in the trading world and some of them make a living with indis you'll never find yourself useful, found on Internet there and there on many different websites or forums.. So I believe this indicator I took time to convert for prorealtime would be of interest of someone, somewhere and could help him/her make a way to a successful way of using it to make money. 

ProRealCode ProRealCode
Loading...