Range Strong Weak

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.

Moderator: admin

Re: Range Strong Weak

Postby Apprentice » Tue Nov 17, 2015 3:50 am

Try to re-download.
I did not manage to get above picture.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Range Strong Weak

Postby Stance » Tue Nov 17, 2015 5:29 am

Just tried, the same problem :(

"/Range Strong Weak Indicator.lua:143: Incorrect instrument name"

Is it because I have an Australian account?
Stance
FXCodeBase: Initiate
 
Posts: 141
Joined: Mon Jun 01, 2015 4:34 pm

Re: Range Strong Weak

Postby Stance » Tue Nov 17, 2015 5:36 am

Stance
FXCodeBase: Initiate
 
Posts: 141
Joined: Mon Jun 01, 2015 4:34 pm

Re: Range Strong Weak

Postby Stance » Tue Nov 17, 2015 7:47 am

Hi,

I've tried using the indicator in a strategy with the following lines of code and it runs, but it doesn't seem to do anything as the backtesting results are the same regardless of whatever I change the period and difference to. Am I missing something or is it this indicator won't work in backtesting?

Code: Select all
strategy.parameters:addInteger("SWPeriod", "Strong Weak Period", " " , 200);
strategy.parameters:addDouble("Difference", "Strong Weak Difference", " " , 30);
.
.
local SWPeriod;
local Difference;
local SW;
.
.
SWPeriod = instance.parameters.SWPeriod;
Difference = instance.parameters.Difference;
.
.
SW = core.indicators:create("RANGE STRONG WEAK INDICATOR", Source, SWPeriod, Difference, core.rgb(0, 255, 0), core.rgb(255, 0, 0), core.rgb(128, 128, 128));
.
.
first=math.max(SW.DATA:first());
.
.
SW:update(core.UpdateLast);
.
.
if SW.DATA:colorI(period) ==  core.rgb(0, 255, 0) then
BUY()
elseif SW.DATA:colorI(period) ==  core.rgb( 255,0, 0)
then
SELL()
end

Stance
FXCodeBase: Initiate
 
Posts: 141
Joined: Mon Jun 01, 2015 4:34 pm

Re: Range Strong Weak

Postby mulligan » Thu Dec 31, 2015 8:05 am

Range Strong Weak Indicator - With the new TS2 Marketscope I get the error message 143: incorrect instrument name. Working fine on old version.

Thanks for your help
mulligan
FXCodeBase: Initiate
 
Posts: 150
Joined: Wed May 16, 2012 4:43 pm

Re: Range Strong Weak

Postby Apprentice » Mon Jan 04, 2016 4:54 am

Have received several similar reports, will investigate.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Range Strong Weak

Postby Apprentice » Sun Oct 21, 2018 5:40 am

The indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 73 guests