SimpleGuy Indicator

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.

SimpleGuy Indicator

Based on the request.
viewtopic.php?f=27&t=65710
1.Line
([non lag moving average] - [ema]) / Close)
2. Line
[non lag moving average] - [Close]
SimpleGuy Indicator.lua

SSNonLagMA.lua SSNonLagMA.lua
viewtopic.php?f=17&t=2231&hilit=non+lag+moving
SimpleGuy Indicator 1. Line.lua

1.Line
(Close / [non lag moving average] - [ema])
SimpleGuy Indicator 2. Line.lua

2.Line
[Close] - [non lag moving average]

Apprentice
FXCodeBase: Confirmed User

Posts: 20393
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: SimpleGuy Indicator

Hi Apprentice,

Thank you for your indi. And thank you SimpleGuy, also.

I noticed I should add this to calculation in order to display correctly on 2-digit charts:

Code: Select all
`point = source:pipSize();...Line1[period]= (NLMA.DATA[period] - EMA.DATA[period]) / source[period]*(point/0.0001);`

Gentle

Posts: 13
Joined: Thu Feb 02, 2017 4:22 am

Re: SimpleGuy Indicator

Hi Apprentice,

thanks alot for ur help.

Can make it separately become 2 indicator?

1.(Close) / ([non lag moving average] - [ema])

2.(Close) - (non lag moving average)

Best Regards
SimpleGuy

Posts: 4
Joined: Wed Feb 07, 2018 7:27 am

Re: SimpleGuy Indicator

Hi Apprentice,

Can make both line separately become 2 indicator

first indicator is (Close / [non lag moving average] - [ema]).

second indicator is [Close] - [non lag moving average]

Really thanks alot
SimpleGuy

Posts: 4
Joined: Wed Feb 07, 2018 7:27 am

Re: SimpleGuy Indicator

SimpleGuy Indicator 1. Line.lua & SimpleGuy Indicator 2. Line.lua added.

Apprentice
FXCodeBase: Confirmed User

Posts: 20393
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: SimpleGuy Indicator

Hi Apprentice

1.Can modified the indicator value become 2 digit? like when I put a horizontal line on it, let say 0.00035 level, now is single digit 0.0003 or 0.0004.

2.Can modified the indicator calculation as below?

first indicator = (Close / [non lag moving average] - [ema])
([non lag moving average] - [ema]) / Close) MODIFIED TO (Close / [non lag moving average] - [ema])

second indicator = [Close] - [non lag moving average]
[non lag moving average] - [Close] MODIFIED TO [Close] - [non lag moving average]

THANKS ALOT
SimpleGuy

Posts: 4
Joined: Wed Feb 07, 2018 7:27 am

Re: SimpleGuy Indicator

Try it now.

Apprentice
FXCodeBase: Confirmed User

Posts: 20393
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia