Try to re-download.
I did not manage to get above picture.
Moderator: admin
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
Users browsing this forum: No registered users and 110 guests