[NinjaTrader] Exit strategy at change of color heiken ashi bar - NinjaTrader | futures io social day trading
futures io futures trading


Exit strategy at change of color heiken ashi bar
Updated: Views / Replies:1,729 / 8
Created: by OWLTC 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
 

Exit strategy at change of color heiken ashi bar

  #1 (permalink)
Elite Member
Around the corner
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: forex
 
Posts: 4 since Oct 2015
Thanks: 2 given, 1 received

Exit strategy at change of color heiken ashi bar

Hi All,

nice to meet so many dedicated people and share the same passion! :-)

This is my first thread and question

Does any one know how i can exit a trade automatically when a heiken ash bar color changes?
Your help and input would be very much appreciated!

Best regards
OWL

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
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


Trading is not like playing with slot machines. The question how to enter or exit a position when "the color changes" is not very professional. Also you should not try to access color objects in NinjaTrader, but rahter access the underlying condition.

A color change of a Heikin Ashi bar may signal a change in the underlying trend. Now you did not specify which version of the Heikin Ashi bars you intend to use. Let me assume that you use standard NinjaTrader Heikin Ashi bars. In that case there are 3 different color states

- upclose: close > open
- downclose: close < open
- doji: close = open

You can check for these conditions via the strategy builder.

I have coded an enhanced version of the HeikinAshi indicator, which you can find here:

https://futures.io/download/ninjatrader-7/indicators/467-download.html

The indicator has the trend (uptrend or downtrend) exposed as a BoolSeries. You can access this BoolSeries directly via code. However, the strategy builder cannot access the BoolSeries, but would require a DataSeries object instead.

I do have a modified version which has the BoolSeries replaced with a DataSeries. The DataSeries can hold the value + 1 (for uptrend) and - 1 (for downtrend), and it can be directly accessed via the strategy builder. So all you would need to do is to check for a change of that value. Please let me know, if you wish to use the modified version of the indicator, and I will post it.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #4 (permalink)
Elite Member
Florida
 
Futures Experience: Advanced
Platform: NinjaTrader 8
Favorite Futures: YM, ES, NQ, CL, ZB
 
trendwaves's Avatar
 
Posts: 742 since Dec 2012
Thanks: 2,822 given, 2,433 received

Assuming your using NinjaTrader (?), and also assuming you would be creating a strategy to do this automatically (?) for you....

To access the default NinjaTrader "HeikenAshi" indicator "bar" open and close values you would use these public accessors....

HeikenAshi().HAOpen[0]

HeikenAshi().HAClose[0]

so a "color change" from Green to Red might look like...

if ((HeikenAshi().HAClose[0] < HeikenAshi().HAOpen[0]) && ( HeikenAshi().HAClose[1] >= HeikenAshi().HAOpen[1]))
{
ExitLong();
}

Be Patient and Trade Smart
Reply With Quote
The following 3 users say Thank You to trendwaves for this post:
 
  #5 (permalink)
Elite Member
Around the corner
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: forex
 
Posts: 4 since Oct 2015
Thanks: 2 given, 1 received


Fat Tails View Post
Trading is not like playing with slot machines. The question how to enter or exit a position when "the color changes" is not very professional. Also you should not try to access color objects in NinjaTrader, but rahter access the underlying condition.

A color change of a Heikin Ashi bar may signal a change in the underlying trend. Now you did not specify which version of the Heikin Ashi bars you intend to use. Let me assume that you use standard NinjaTrader Heikin Ashi bars. In that case there are 3 different color states

- upclose: close > open
- downclose: close < open
- doji: close = open

You can check for these conditions via the strategy builder.

I have coded an enhanced version of the HeikinAshi indicator, which you can find here:

The indicator has the trend (uptrend or downtrend) exposed as a BoolSeries. You can access this BoolSeries directly via code. However, the strategy builder cannot access the BoolSeries, but would require a DataSeries object instead.

I do have a modified version which has the BoolSeries replaced with a DataSeries. The DataSeries can hold the value + 1 (for uptrend) and - 1 (for downtrend), and it can be directly accessed via the strategy builder. So all you would need to do is to check for a change of that value. Please let me know, if you wish to use the modified version of the indicator, and I will post it.

Hi Fat tails,

Thank you for replying to my question. Indeed i might not come across professional just because i am not professional.
I am also very rusty on my C++, C# is new. So therefor i can only appreciate your reply even more, thank you.

Also thank you for the indicator to download and the tip on the BoolSeries, i will try them both.

OWL

Reply With Quote
 
  #6 (permalink)
Elite Member
Around the corner
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: forex
 
Posts: 4 since Oct 2015
Thanks: 2 given, 1 received


trendwaves View Post
Assuming your using NinjaTrader (?), and also assuming you would be creating a strategy to do this automatically (?) for you....

To access the default NinjaTrader "HeikenAshi" indicator "bar" open and close values you would use these public accessors....

HeikenAshi().HAOpen[0]

HeikenAshi().HAClose[0]

so a "color change" from Green to Red might look like...

if ((HeikenAshi().HAClose[0] < HeikenAshi().HAOpen[0]) && ( HeikenAshi().HAClose[1] >= HeikenAshi().HAOpen[1]))
{
ExitLong();
}

Hi Trendwaves,

Thank you for your reply and information. I very much appreciate that you have taken the time to educate me and to show how it would be written. Indeed i am using ninjatrader, sorry to mention that. Your clarification is very educational and can't wait to try to implement it. Thank you!

OWL

Reply With Quote
The following user says Thank You to OWLTC for this post:
 
  #7 (permalink)
Trading for Fun
san antonio, tex
 
Futures Experience: None
Platform: oec
Favorite Futures: lean hogs
 
Posts: 67 since Nov 2014
Thanks: 16 given, 20 received

"....enter or exit a position when "the color changes" is not very professional."

I thought the color changes gave a very good clue. Two red bars after a series of green bars looked like they gave a good sell signal.

So what am I missing here? Do the colors change after the fact? As in, the color will be dependent on the next bar?

I've just starting looking at the heikin ashi, not even sure how to spell it.

Reply With Quote
 
  #8 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,316 received
Forum Reputation: Legendary


thailerdurden View Post
"....enter or exit a position when "the color changes" is not very professional."

I thought the color changes gave a very good clue. Two red bars after a series of green bars looked like they gave a good sell signal.

So what am I missing here? Do the colors change after the fact? As in, the color will be dependent on the next bar?

I've just starting looking at the heikin ashi, not even sure how to spell it.

this is how bar color changes

Attached Thumbnails
Exit strategy at change of color heiken ashi bar-2015-11-14_1024.png  
Reply With Quote
 
  #9 (permalink)
Trading for Fun
san antonio, tex
 
Futures Experience: None
Platform: oec
Favorite Futures: lean hogs
 
Posts: 67 since Nov 2014
Thanks: 16 given, 20 received

heikin ashi close = average of high low close open of current standard candlestick bar or hi low open close bar

heikin ashi open = average of close and open of last heikin ashi bar

so the heiken ashi close value depends on what just happened in the current period

and the heikin ashi open value depends of what happened on the last period.

Thus a heikin ashi bar is not dependent on the future period?? In short, it is not cheating. Reason I asked, is I had a spread sheet formula that showed a fantastic profit loss result. What happened was I was using the current hi low values to put a position on at the open.

Hell, then why not sell at the high and buy at the low since I knew at the open what the high and low was going to be?

Reply With Quote
The following user says Thank You to thailerdurden for this post:

Reply



futures io > > > > [NinjaTrader]    Exit strategy at change of color heiken ashi bar

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
heiken ashi with just bar color uspilotzzz NinjaTrader 2 June 29th, 2015 12:34 AM
Inside bar for Heiken Ashi uspilotzzz NinjaTrader Programming 1 June 7th, 2015 03:35 PM
how to change COLOR of previous BAR???? selnomeria EasyLanguage Programming 4 January 12th, 2015 12:14 PM
Heikin Ashi indicator with bar outline same color as bar? Todd NinjaTrader 29 September 7th, 2013 08:33 AM
Heiken-Ashi Day Trading Fool NinjaTrader 17 August 11th, 2012 08:51 PM


All times are GMT -4. The time now is 02:36 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-12-14 in 0.14 seconds with 20 queries on phoenix via your IP 54.221.76.68