Strategy help on Kagi & Uni Renko etc. - NinjaTrader Programming | futures io social day trading
futures io futures trading


Strategy help on Kagi & Uni Renko etc.
Updated: Views / Replies:629 / 9
Created: by KennyK Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Strategy help on Kagi & Uni Renko etc.

  #1 (permalink)
Elite Member
Sunshine Coast Queensland Australia
 
Futures Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker/Data: Ninjatrader
Favorite Futures: AUD Futures
 
KennyK's Avatar
 
Posts: 88 since Apr 2013
Thanks: 28 given, 22 received

Strategy help on Kagi & Uni Renko etc.

HI, I am trying hard to code a strategy and need a bit of help.
Firstly I wish to know if what I want to do is doable?
That is as follows:
The strategy would be placed on a Kagi chart, (don't know if that makes any difference or not)?
The trade entry and exit signals will come from the Kagi chart.
The trend direction is determined from an ATR trailing indicator on a Uni Renko chart.
I have tried to add the Uni Renko data series to my strategy, but without success.
If all the above is possible, then I need to set the properties for the ATR Trailing, Uni Renko and Kagi bars, within the strategy as user defined, but with a default that I want to program in.
I have watched the webinar of Scott Hodson, which was very informative, creating the Cesar Salad strategy, and have basically followed his example as much as I can, but some of what I want to do is outside the scope of his example.
If I can get some feedback on the above I will then have some further questions.
Thanks,
Ken.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,373 since Sep 2013
Thanks: 1,648 given, 3,511 received
Forum Reputation: Legendary


You want to do this in NT7 or NT8

Maybe you want to upload what you have already ?

Reply With Quote
 
  #4 (permalink)
Elite Member
Sunshine Coast Queensland Australia
 
Futures Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker/Data: Ninjatrader
Favorite Futures: AUD Futures
 
KennyK's Avatar
 
Posts: 88 since Apr 2013
Thanks: 28 given, 22 received

NT8


rleplae View Post
You want to do this in NT7 or NT8

Maybe you want to upload what you have already ?

I am in NT8. I would have already uploaded what I have but can't export it. I think it must be because it is incomplete? It has compiled though. I will try again, but don't know if I will be able to?

Reply With Quote
 
  #5 (permalink)
Elite Member
Sunshine Coast Queensland Australia
 
Futures Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker/Data: Ninjatrader
Favorite Futures: AUD Futures
 
KennyK's Avatar
 
Posts: 88 since Apr 2013
Thanks: 28 given, 22 received

Strategy uploaded


rleplae View Post
You want to do this in NT7 or NT8

Maybe you want to upload what you have already ?

Ok, I found the problem why I couldn't export, although it compiled in the editor it didn't compile suitably for export due to the following error: CS0246. I did add a using declaration for bar types which I thought would cover that, but obviously it didn't. So I had to disable the code responsible, the declarations at the top.

Anyhow the file has been uploaded. Feedback really appreciated.

Attached Files
Register to download File Type: zip KagiSwinger.zip (8.3 KB, 9 views)
Reply With Quote
 
  #6 (permalink)
Elite Member
Sunshine Coast Queensland Australia
 
Futures Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker/Data: Ninjatrader
Favorite Futures: AUD Futures
 
KennyK's Avatar
 
Posts: 88 since Apr 2013
Thanks: 28 given, 22 received

Forgot to mention

I forgot to mention....
I had written some code in "On Bar Update()", but deleted it because it was causing errors.
It was something like this:

bool LongTrend {get { return CurrentBar > this._ATRTrail;}
Bool ShortTrend { get { return CurrentBar < this._ATRTrail;}

The problem was with the < > operators. Said I couldn't use them with the indicator.

If you need clarification on any thing I will be happy to provide more details.

Reply With Quote
 
  #7 (permalink)
Elite Member
Sunshine Coast Queensland Australia
 
Futures Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker/Data: Ninjatrader
Favorite Futures: AUD Futures
 
KennyK's Avatar
 
Posts: 88 since Apr 2013
Thanks: 28 given, 22 received

I found this

I found this elsewhere posted by WoodyFox, which will help.

For those looking to AddDataSeries for UniRenko
Here it is;

else if (State == State.Configure)
{
AddDataSeries(new BarsPeriod() { BarsPeriodType = (BarsPeriodType)20, Value = 5, Value2 = 15 });
}

5 = Tick Trend
15 = Tick Reversal

Trend and Reversal can be set to whatever you need.

Reply With Quote
 
  #8 (permalink)
Elite Member
San Francisco, CA
 
Futures Experience: Advanced
Platform: IB-TWS, Ninja, Wave59, R
Broker/Data: IB, IQFeed
Favorite Futures: ZB
 
Posts: 34 since Sep 2013
Thanks: 0 given, 21 received

I have not looked at your code yet, but have some experience with renko/uni renko charts. I highly recommend you back test your strategy manually (at least a few trades) to make sure it works. I say this because Renko/uni renko charts re-print and have false opens. So if you write a strategy around it sometime you can have crazy slippage. Sometimes it looks good on the chart, but you need to bring up a basic time (like a 1 min) chart or a tick chart and see were your fill will really be. As a not if it is an automated strategy it will be almost impossible to backtest with any confidence.....just an fyi.

Not saying it is not good strategy or it wont work. I have just personally spent hours of wasted programing time on Uni Renko strategies that look great in testing and didn't realize i had 10 ticks of slipage on both sides of my (real) trades.

Reply With Quote
The following user says Thank You to marpol for this post:
 
  #9 (permalink)
Elite Member
Sunshine Coast Queensland Australia
 
Futures Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker/Data: Ninjatrader
Favorite Futures: AUD Futures
 
KennyK's Avatar
 
Posts: 88 since Apr 2013
Thanks: 28 given, 22 received


marpol View Post
I have not looked at your code yet, but have some experience with renko/uni renko charts. I highly recommend you back test your strategy manually (at least a few trades) to make sure it works. I say this because Renko/uni renko charts re-print and have false opens. So if you write a strategy around it sometime you can have crazy slippage. Sometimes it looks good on the chart, but you need to bring up a basic time (like a 1 min) chart or a tick chart and see were your fill will really be. As a not if it is an automated strategy it will be almost impossible to backtest with any confidence.....just an fyi.

Not saying it is not good strategy or it wont work. I have just personally spent hours of wasted programing time on Uni Renko strategies that look great in testing and didn't realize i had 10 ticks of slipage on both sides of my (real) trades.

HI,
i am only using the UniRenko chart for detecting the trend with the ATR Trailing indicator.
Execution would be based on the Kagi chart.
Thanks for you concern though, it's good to know in any case.

Reply With Quote
 
  #10 (permalink)
Elite Member
Sunshine Coast Queensland Australia
 
Futures Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker/Data: Ninjatrader
Favorite Futures: AUD Futures
 
KennyK's Avatar
 
Posts: 88 since Apr 2013
Thanks: 28 given, 22 received

What would the logic look like?


What would the logic look like to do this, which is explained in English?
LongTrend = UniRenko last price is = or > ATR Trailing indicator.
ShortTrend = UniRenko last price is = or < ATR Trailing indicator.

Keeping in mind this strategy refers to two different charts or data series.
The UniRenko for trend direction and the Kagi for trade execution and management.

Thanks,
Ken.

Reply With Quote

Reply



futures io > > > > > Strategy help on Kagi & Uni Renko etc.

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

RandBots: AutoTrading Bots to diversify your trading

Oct 24
 

TopstepTrader: Profiting Without Risking Your Own Money

Oct 26

Building Open Source Indicators for NT8 w/Fat Tails @ Lizard Indicators

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is uni renko the same as iw mean renko? pilotui The Elite Circle 4 March 23rd, 2017 08:23 PM
Kagi chart : backtesting and market replay. Christophe NinjaTrader Programming 3 July 8th, 2015 11:14 AM
Uni renko bars change code so we can see movement per candle jsengxx2 NinjaTrader Programming 2 September 25th, 2014 05:38 AM
Kagi KennyK NinjaTrader 5 March 21st, 2014 05:11 AM
End of bar strategies with advanced bar types (Renko, Range, Kagi, etc) RM99 Elite EasyLanguage Automated Trading 2 September 9th, 2011 08:38 AM


All times are GMT -4. The time now is 01:24 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-10-20 in 0.13 seconds with 20 queries on phoenix via your IP 54.80.132.10