Stochastic Indicator

Moderator: admin

Stochastic Indicator

Postby fxcatty » Mon Apr 30, 2012 5:29 pm

Hello, I tried inputting a value of '1' for the %D value. Stochastic with TS platform have a minimum value of 2, so I tried editing the indicator lua to allow a value of 1. I get an error when trying to load the indicator still.

Just curious if this could be fixed so I can have a %D value = '1' .

Thanks.

Code: Select all
    indicator.parameters:addGroup("Calculation");
    indicator.parameters:addInteger("K", resources:get("param_K_name"), resources:get("param_K_description"), 5, 2, 1000);
    indicator.parameters:addInteger("SD", resources:get("param_SD_name"), resources:get("param_SD_description"), 3, 2, 1000);
    indicator.parameters:addInteger("D", resources:get("param_D_name"), resources:get("param_D_description"), 1, 1, 1000);
fxcatty
 
Posts: 27
Joined: Thu Jul 01, 2010 7:16 pm

Re: Stochastic Indicator

Postby sunshine » Wed May 02, 2012 12:59 am

Which error do you get? May be this is because you are trying to import the indicator with the same name as the standard indicator has.
Please find the Stochastic with %D equaled to 1 in the attachment.
Note that the %D line with value 1 will match the %K line.
Attachments
Stochastic_modified.lua
(8.61 KiB) Downloaded 582 times
Stochastic_modified.lua.rc
(18.79 KiB) Downloaded 547 times
sunshine
 

Re: Stochastic Indicator

Postby fxcatty » Wed May 02, 2012 8:12 am

That did not load. I received an input load error still. Same issue as I was having previously. You can disregard the issue.

Thanks,
Matt
fxcatty
 
Posts: 27
Joined: Thu Jul 01, 2010 7:16 pm


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 42 guests