How to Download and Install a Custom Signal/Strategy

The custom signals are published in this forum.

Moderator: admin

Re: How to Download and Install a Custom Signal/Strategy

Postby ChaosBlacKnight » Sat Jul 11, 2020 11:48 pm

Hi.

I am experiencing a problem with a JS that's loaded here, The_River_JS.jpl.

viewtopic.php?f=48&t=66082&p=119034&hilit=the+river#p119034

When following the instructions on this page, including the renaming of the extension to .lua, I receive the following error on Marketscope 2.0:

the language dll does not support the requested feature :?:

Any help would be greatly appreciated.

Cheers.

The complete code inside the JS file is:

function Init()
{
indicator.name("The River");
indicator.description("Presented by ForPipSake");
indicator.requiredSource(core.Tick);
indicator.type(core.Indicator);

indicator.parameters.addGroup("Calculation");
indicator.parameters.addInteger("Period", "Period", "", 50);
indicator.parameters.addInteger("Power", "Power", "", 2, 1, 9);
indicator.parameters.addDouble("Deviation", "Deviation", "", 1);

indicator.parameters.addGroup("Style");
indicator.parameters.addColor("clrReg", "Color regression", "Color regression", core.rgb(255, 0, 0));
indicator.parameters.addColor("clrBand", "Color band", "Color band", core.rgb(0, 0, 255));
indicator.parameters.addInteger("width", "width", "width", 1, 1, 5);
indicator.parameters.addInteger("style", "style", "style", core.LINE_SOLID);
indicator.parameters.setFlag("style", core.FLAG_LEVEL_STYLE);
}

var first;
var source = null;
var Period;
var Power;
var Deviation;
var BuffReg=null;
var BuffBandUp=null;
var BuffBandDn=null;

function Prepare()
{
source = instance.source;
Period=instance.parameters.Period;
Power=instance.parameters.Power;
Deviation=instance.parameters.Deviation;
first = source.first()+2;
var name = profile.id() + "(" + source.name() + ", " + instance.parameters.Period + ", " + instance.parameters.Power + ", " + instance.parameters.Deviation + ")";
instance.name(name);
BuffReg = instance.addStream("BuffReg", core.Line, name + ".Regression", "Regression", instance.parameters.clrReg, first);
BuffBandUp = instance.addStream("BuffBandUp", core.Line, name + ".BandUp", "BandUp", instance.parameters.clrBand, first);
BuffBandDn = instance.addStream("BuffBandDn", core.Line, name + ".BandDn", "BandDn", instance.parameters.clrBand, first);
BuffReg.setWidth(instance.parameters.width);
BuffReg.setStyle(instance.parameters.style);
BuffBandUp.setWidth(instance.parameters.width);
BuffBandUp.setStyle(instance.parameters.style);
BuffBandDn.setWidth(instance.parameters.width);
BuffBandDn.setStyle(instance.parameters.style);
}

function Update(period, mode)
{
ChaosBlacKnight
 
Posts: 1
Joined: Sat Jul 11, 2020 11:38 pm

Previous

Return to Custom Signals

Who is online

Users browsing this forum: No registered users and 17 guests