attempt to index global 'strategy' (a nil value)

Moderator: admin

attempt to index global 'strategy' (a nil value)

Postby ecamerin » Wed Apr 06, 2011 3:25 pm

Hello, i've just update the sdk to the last version 2.0 beta.
when i debug the strategy in the output message show up the error:
attempt to index global 'strategy' (a nil value).
i also try the sample strategy with the same result.
Thank you
Enrico
ecamerin
 
Posts: 6
Joined: Mon Jan 31, 2011 2:20 pm

Re: attempt to index global 'strategy' (a nil value)

Postby Nikolay.Gekht » Thu Apr 07, 2011 9:51 am

Please use Lua Strategy Debugger to debug the strategy and Lua Indicator Debugger to debug the indicators.

Please also see the step-by-step instructions on FXCodebase Wiki. Most of them includes the detailed information how to create, store and configure the indicators and strategies properly.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: attempt to index global 'strategy' (a nil value)

Postby ecamerin » Sat Apr 09, 2011 11:25 am

Hi, i'm using the strategy debugger. the message show up after the init() function
[string "C:\Gehtsoft\IndicoreSDK\indicators\quarter.lua"]:5: attempt to index global 'strategy' (a nil value). However the program continue until the finish.
The same strategy carry out from the old version don't show this message
I'd like to use the last version for the very power new feature.
Thank you
Enrico
ecamerin
 
Posts: 6
Joined: Mon Jan 31, 2011 2:20 pm

Re:. attempt to index global 'strategy' (a nil value)

Postby ecamerin » Sun Apr 10, 2011 12:34 pm

problem solved.
there was 2 strategy file: the first under the strategy directory and the other under the indicator directory.
I removed the last and fixed the problem.
ecamerin
 
Posts: 6
Joined: Mon Jan 31, 2011 2:20 pm


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 72 guests