NonLagDot trend indicator

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

 

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. verdi55 • 59 days 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 • 59 days 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. 

  2. ML • 59 days 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! 🙂

avatar
Register or

Likes

avatar
Related users ' posts
leo1962 Ciao Nicolas, nel codice c'è un errore di sintassi, allego screenshot. Non sono pratico di ...
Nicolas Este indicador sólo funcionará para Prorealtime v10.3 y superior.
leo1962 gracias ;)
larouedegann blue = 50 green = 20 red = 10 than you
Wing Yes, investigate as much as you want. For more insight, you can view the linet1, linet2 etc....
CKW Hi Wing, Thanks for your sharing. I am still trying to breakdown & understand your code...
Wing Hello CKW. No, the parameter, 7 in this case, is used when calling the RSI indicator to ide...
Nicolas Nope, because this one is made for version 10.3 and no variables is needed in RETURN instruc...
Ernesto1 Nicolas, thanks for the code. I can use it in a trading system, as a set-up for entry  and e...
supertiti Hola Nicolas, Can you make us the screener for the Sadukey V2 with the change of color ? t...
Nicolas
5 months ago
ALMA MACD
ALMA MACD
0
Indicators
gianpiero75 sorry....now it's correct error ST = Supertrend[a,b] a=17 // default 10 b=58 correct...
MikeGC I don't know if you have used the variables a and b to optimise the parameters for the Super...
gianpiero75 I have not optimized, I multiplied the parameters for 6 (5,8), to use them on the 4  hoursTF...
Tomax is Background colour only available from 10.3 and not possible with 10.2 ?
Nicolas Yes, colouring background by code is only available in the version 10.3. with the instructio...
ludo7769 Hello , J'ai la version 10.2 et ca ne marche pas, qu'est ce qui coince ?  Merci a vous 
finplus Bonjour, j'ai retesté hier sur la paire AUD/USD timeframe 1 heure sur mon compte réel chez I...
finplus Bonsoir, j'ai de nouveau aujourd'hui lancé la stratégie en réel sur mon compte IG sur la pai...
AleX 0 improvments, I tried a lot of modified version but no one was working. I think that only w...
Doctrading I forgot to write at the beginning :  a = 50 b = 50 These are intermediate levels Sorry
DerPat Thank you. This one could be an aid in my current research on stochastics.
Doctrading Hello, Someone asked me something (his results seemed to be different) on my email, but it ...
GraHal Hi Nicolas I like this and would like to understand it fully so please forgive the (maybe) d...
Nicolas Hi GraHal, the Factor parameter is only a multiplier of the ATR that is added or subtracted ...
GraHal Nicolas, thank you for your useful and informative response. Yes I optimise using ProBackte...
Nicolas
12 months ago
Nicolas
12 months ago
GraHal Hi Nicolas Britains .itf file didn't work for me ... I had to change h to hh at line 13 and...
Nicolas Thank you GraHal for pointing this error, i have corrected the code in the file. The code in...
Nicolas
12 months ago
Nicolas
1 year ago
U Trend Sensor
U Trend Sensor
2
Indicators
Stef Hi @Nicolas. I see in a lot of your posts you use "derivated." I think you mean to say "deri...
Nicolas Hi Stef, thanks again for contributing to my near perfect english :)
Nicolas
1 year ago
iainmclean One question Nicolas - what's your rationale behind a 21 period?
Nicolas There is no hidden truth behind a 21 period for this indicator. This a moving average period...
cosmicsurfer I actually live up the road from Daryl Guppy. On the first day of my training i walked aroun...
Nicolas
1 year ago

Top