Ninjatrader Strategy To Lua

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Re: Ninjatrader Strategy To Lua

Postby cfbaua » Thu Sep 20, 2018 1:00 pm

It works now on tick charts, but I think the trading logic is not working correct. It should buy and sell As in the screenshot I am attaching. Buy or Sell when the price crosses over at the upper or lower bollinger band. Close the trade when the price reaches the middle band.
Attachments
Trade Examples.jpg
cfbaua
 
Posts: 27
Joined: Wed Aug 08, 2018 10:42 am

Re: Ninjatrader Strategy To Lua

Postby Apprentice » Sat Sep 22, 2018 4:15 am

This is logic this strategy is using (with additional RSI indicator check)
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Ninjatrader Strategy To Lua

Postby cfbaua » Sat Sep 22, 2018 9:11 am

It seems to behave differently when you are testing it on live (demo) data. In backtests it seems to do well. Please double check.
cfbaua
 
Posts: 27
Joined: Wed Aug 08, 2018 10:42 am

Re: Ninjatrader Strategy To Lua

Postby cfbaua » Thu Sep 27, 2018 10:32 am

The strategy opens trades in the wrong direction sometimes, and does not close them at the middle band of the Bollinger bands. This happens on live charts. This should be corrected.
Attachments
Chart_09272018.jpg
cfbaua
 
Posts: 27
Joined: Wed Aug 08, 2018 10:42 am

Re: Ninjatrader Strategy To Lua

Postby cfbaua » Thu Oct 04, 2018 11:11 am

Are you still working on the strategy?
cfbaua
 
Posts: 27
Joined: Wed Aug 08, 2018 10:42 am

Re: Ninjatrader Strategy To Lua

Postby cfbaua » Mon Oct 15, 2018 11:03 am

This may be helpful. Something to convert C# code to Lua.

https://github.com/yanghuan/CSharp.lua
cfbaua
 
Posts: 27
Joined: Wed Aug 08, 2018 10:42 am

Re: Ninjatrader Strategy To Lua

Postby cfbaua » Mon Oct 22, 2018 4:01 pm

I am now experimenting with strategyquant. This software generates trading strategies in easylanguage format. I wonder if you can convert easylanguage files into lua. See the attachment for an example file.
Attachments
ALGO_000.txt
(2.8 KiB) Downloaded 512 times
cfbaua
 
Posts: 27
Joined: Wed Aug 08, 2018 10:42 am

Easylanguage to lua

Postby cfbaua » Mon Oct 22, 2018 4:22 pm

I wonder if it is possible to convert easylanguage to lua. See attached file. I uploaded a similar file before but that was only psuedocode.
Attachments
AlgoWizar1540218343269.txt
(6.15 KiB) Downloaded 518 times
cfbaua
 
Posts: 27
Joined: Wed Aug 08, 2018 10:42 am

Re: Ninjatrader Strategy To Lua

Postby Apprentice » Tue Oct 23, 2018 4:15 am

Your requests are added to the development list under Id Number 4275
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


PreviousNext

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Google [Bot] and 17 guests