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
You must be logged in to post a comment.
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 ?
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.
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