by MrRiversideDude » Mon Apr 21, 2014 8:02 pm
This is a snippet of the code:
function Prepare(nameOnly)
AllowedSide = instance.parameters.AllowedSide;
PlaySound = instance.parameters.PlaySound;
ShowAlert = instance.parameters.ShowAlert;
TimeFrame = instance.parameters.TF;
INDICATOR = instance.parameters.INDICATOR;
local tmpprofile = core.indicators:findIndicator(instance.parameters:getString("INDICATOR"));
local tmpparams = instance.parameters:getCustomParameters("INDICATOR");
Process = tmpparams:getString("Process");
This works the first time. The problem happens when I change the value of the "Process" parameter. How do I get the new value into my strategy? I thought the best would be in the function ExtUpdate.
Goal: Use the indicator to print to the chart like a dashboard, pass values to the strategy to manage my trades.
Thanks again.