Please tell me what exactly you are trying to do. Do you try to optimize the strategy which uses the "xInclude.lua" indicator?
TakisGen wrote:Hi,
i have three files as follows:
xTick.lua
requiredSource=core.Tick
dofile("xInclude.lua");
xBar.lua
requiredSource=core.Bar
dofile("xInclude.lua");
xInclude.lua
function Init()
if requiredSource==core.Tick then
indicator:name("xTick");
indicator:description("xTick");
else
indicator:name("xBar");
indicator:description("xBar");
end
indicator:requiredSource(requiredSource);
....
Both indicators, xTick and xBar, are working ok with TSII Marketscope and TSII Strategy Optimizer
as well as with TSII Dev Marketscope (this Beta) but not with it's Strategy Optimizer.
The error details:
...\FXTS2.Dev\Indicators\Custom\xInclude.lua:9: The first parameter must be core.Bar or core.Tick
Regards,
Takis