Lua application

Moderator: Moderator

Lua application

Postby jhouchin » Tue Oct 25, 2011 8:03 pm

Since Lua is used for indicators, it seems that it would be nice if Lua was able to be used for creating ForexConnect applications.

Will Lua access be available for non C++ programmers?

Thanks.
jhouchin
FXCodeBase: Confirmed User
 
Posts: 46
Joined: Fri Feb 25, 2011 1:38 pm
Location: Texas

Re: Lua application

Postby sunshine » Thu Oct 27, 2011 12:42 am

Please read about Indicore Integration SDK. I believe this is what you need.
sunshine
 

Re: Lua application

Postby jhouchin » Thu Oct 27, 2011 8:16 am

sunshine wrote:Please read about Indicore Integration SDK. I believe this is what you need.


Hello,

No, that is not what I was referring to.

I am currently using Order2Go in an app. ForexConnect is the future.
Since the developers are using Lua in Indicore.
I thought it would be nice if Lua was natively usable in ForexConnect to build a ForexConnect app using Lua. This would also make using the indicators in a ForexConnect app fairly easy. Yes the indicators may need some tweaking for such use. But it wouldn't be difficult.

Yes, I know that it is possible. But I am not a C++ developer and have no knowledge of how to embed Lua and compile it into a ForexConnect application.

Currently, I am using Python to access the COM dll in Order2Go.

Thanks.

Jimmie
jhouchin
FXCodeBase: Confirmed User
 
Posts: 46
Joined: Fri Feb 25, 2011 1:38 pm
Location: Texas

Re: Lua application

Postby sunshine » Mon Oct 31, 2011 2:27 am

Hi,

Could you please give me more details about what you are going to do.
As far as I understand you need one of the following:
1) You would like to write your program in Lua and use ForexConnect in it.
or
2) You would like to use Lua scripts (indicators/strategies) within your program written in some programming language, say in C#.
sunshine
 

Re: Lua application

Postby jhouchin » Mon Oct 31, 2011 8:59 am

Hello,

To make this simple, for the moment forget about indicators, just ForexConnect.

ForexConnect current supports C++, .NET, Java natively for applications.
It has been stated that a windows COM dll will be generated in the future for people who want to migrate from Order2Go and such a dll would help them do so.

I and many others do not use C++, .NET, or Java, but can use Lua.
Lua is supported language in other products, Indicore SDK, and MarketScope.

This could be seen as a request or a nice feature for ForexConnect.
It would be nice if Lua was embedded in ForexConnect and one could build their trading application in Lua. It would be nice if Lua was supported like C++, .NET and Java.

Yes, I know there is technically nothing stopping anybody from doing this right now.
But for many of us, yes there is. We don't know how. But technically speaking, .NET and Java are being provided support above a basic C++ library to build apps. Their interop libraries are being provided with the SDK. I am just proposing that a nice dynamic language like Lua be added to that support.

All that said. What I was referring to before with regards to Indicators, is that if Lua was embedded into ForexConnect. It would be easy to use the indicators in your ForexConnect application.

In other words. The idea isn't about embedding Indicators in a ForexConnect app. But rather embedding Lua into ForexConnect.

Thanks.

Jimmie
jhouchin
FXCodeBase: Confirmed User
 
Posts: 46
Joined: Fri Feb 25, 2011 1:38 pm
Location: Texas

Re: Lua application

Postby Nikolay.Gekht » Mon Oct 31, 2011 2:38 pm

I understand the idea. Having C++ API in core, ForexConnect can be integrated with virtually any platform. However, we aren't planning to include all possible platform into standard implementation. However, developing of Lua ForexConnect wrapper for ForexConnect is pretty good idea. I'll take a look what we can do. I think the most possible thing is developing the core implementation and then release it as a open-source product. I'll keep you informed.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Lua application

Postby jhouchin » Mon Oct 31, 2011 3:04 pm

Thanks for your consideration.

I understand that you wouldn't want to support every possible combination. The only reason I make the suggestion, is that you already use Lua in your other products. You are already comfortable with it. Your user base will potentially already be familiar with it. It seems like a good fit for a dynamic language element to your ForexConnect API.

Jimmie
jhouchin
FXCodeBase: Confirmed User
 
Posts: 46
Joined: Fri Feb 25, 2011 1:38 pm
Location: Texas

Re: Lua application

Postby Loggy48 » Thu Nov 25, 2021 1:30 pm

I have a multi-model, multi-trade strategy that runs on Trading Station which is OK but tracing and debugging can be messy, particularly for a complex strategy, despite a number of tools that I have. I am also Windows-phobic - for me development in Linux is always 100x quicker and easier to do than in Windows, with mean time to BSOD/hiccup/dump measured in days rather than years even in a Server environment. In fact I avoid Windows if at all possible. [Microsoft should have done what Apple did with OS/9 all those years ago, ditched it, used *nix and rewritten the graphics and micro-kernel. There is a good reason why the whole internet architecture and all supercomputers use Linux.]

I tried Strategy Runner but couldn't get it to work. Anyway I need the whole process to be available and not wrapped up in something I can't get at when an error occurs - I may as well use Trading Station.

As required by TS, all coding is in Lua, as are a number of supporting programs that are better running at the same time on the same platform.

While I've nothing against Python or C, I don't want to spend a lot of time learning them then porting everything over. Lua is simple, elegant and sufficient, particularly the JIT implementation which I run on a multicore machine using Lanes. For a language frequently used for games with many async network, competitor, mouse and keyboard events, it must be a natural partner for ForexConnect or REST, with http-lua and coroutines to handle the asynchronous events.

A Lua port was suggested 10 years ago but has anyone done this yet? Is there any reason why it can not be done?

TIA
Loggy48
 
Posts: 83
Joined: Tue Jun 24, 2014 8:39 am
Location: Manchester, UK


Return to ForexConnect API

Who is online

Users browsing this forum: No registered users and 1 guest