OmniTrader Professional Forum
-
Omni Pilot Discussion
OT Doesn't Start |
^ Top | ||
JamesR![]() Posts: 33 Joined: 1/7/2011 Location: Cotswolds, UK ![]() | I am running OT2014 Pro. Up until this morning, all of my Pilot Scripts were working fine, but now none of them (including the supplied Nirvana ones) will start OT. I call the StartOT() Function and the Pilot window logs StartOT. But OT doesn't start - the function must return as the script continues to run - then just reports many errors about the things it can't do because OT is not started. Does StartOT return any codes that might give a clue - or is there any known reason why Pilot wouldn't start OT up? many thanks | |
^ Top | ||
JamesR![]() Posts: 33 Joined: 1/7/2011 Location: Cotswolds, UK ![]() | OK - after much work and reinstalling I have discovered something I really do not understand. The scripts that don't work were copied to the OT2014/VBA/Omnipilot directory from a back up. If I do a start OT from any of those files it does not work. However, if I create a new file via pilot and run that it works fine!!!! Thoughts? | |
^ Top | ||
Jim Dean![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | Flush out the vba\temp file after copying the old version, then start OT | |
^ Top | ||
JamesR![]() Posts: 33 Joined: 1/7/2011 Location: Cotswolds, UK ![]() | Think I am talking to myself here - but I have found a 'cause' in my copied files For some reason Sub OnStartup 'statements end sub was missing the brackets after OnStartUp If I correct that to Sub OnStartUp() 'statements end sub Then all works fine........... |