im new in coding and need our help

Moderator: admin

im new in coding and need our help

Postby MarkoFX » Fri Jan 29, 2016 4:23 am

hello,
i want to change some indicator settings.
this is the indicator i talk about:
download/file.php?id=14356

for first i will replace the 0.0001 oscilator scale with a 0.00001 scale.

a member wrote he have use this code to solve the problem
local precision = math.max(2, source:getPrecision());
MACD:setPrecision(precision);

where i must add this code ?

my next question
I will replace the Indicator line with a exponential calulated line

i want to learn, can you help me pleace or can you say me a good totorial or anything else where I can learn to make this ?

best regards MarkoFX
MarkoFX
 
Posts: 18
Joined: Tue Jan 26, 2016 11:44 am

Re: im new in coding and need our help

Postby Apprentice » Fri Jan 29, 2016 6:02 am

Line 65
Code: Select all
MACD = instance:addStream("MACD", core.Line, name .. ".MACD", "MACD", instance.parameters.Color, source:first());
MACD:setWidth(instance.parameters.Width);
MACD:setStyle(instance.parameters.Style);
MACD:setPrecision(5);



As far as literature.
Everything you need can be found online.

As far as literature.
Everything you need can be found online.
Books about lua.
Programming in Lua by Roberto Ierusalimschy

On this Forum
http://fxcodebase.com/documentation.php
You can Download Indicore SDK, contains editor and deguber.

For more information and private lessons.
Can you contact me on my private email.
mario(.)jemic(@)gmail(.)com
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: im new in coding and need our help

Postby MarkoFX » Fri Jan 29, 2016 6:38 am

thx for your help :)
MarkoFX
 
Posts: 18
Joined: Tue Jan 26, 2016 11:44 am


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 9 guests