by LeTigre30 » Sat Apr 09, 2016 5:42 am
Hi Apprentice,
I Check again this strategy today Saturday April 9th with the SDK...
Always the same issue, it doesn't take positions.
I take a look at the code of the strategy for the triggers to enter an order BUY or SELL,
the lines 283 and 291 are :
283 if Indicator.DATA:colorI(period) == core.rgb(0, 255, 0) and Indicator.DATA:colorI(period-1) ~= core.rgb(0, 255, 0) then
....
291 elseif Indicator.DATA:colorI(period) == core.rgb(255, 0, 0) and Indicator.DATA:colorI(period-1) ~= core.rgb(255, 0, 0) then
...
Also, I look at the indicator, the method "colorI" is not existing in the code
I try to replace "colorI" by the streams ZL and DN which are declared in the indicator,
but the SDK sends an error when the test is launched
ERROR " attempt to call method 'ZL' (a nil value)" in file "C:/Gehtsoft/IndicoreSDK3.1.0/strategies/Custom/Zero Lag Indicator Strategy.lua" at line #283
can you help ?
Thanks for replying