DOJI Indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading


DOJI Indicator
Updated: Views / Replies:5,622 / 19
Created: by keepdchange Attachments:14

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
 14  
 
Thread Tools Search this Thread
 

DOJI Indicator

  #11 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received

Thanks Fat Tails.

I've been experimenting with different candle types today and
last weekend. Some are worse than others. None are really any
good. Momentum bars might be the least bad. Still... not good
enough.

Attached Thumbnails
DOJI Indicator-momentum.png  
Reply With Quote
 
  #12 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received

Not much to see really.

First graph shows a chart using range=3

Second shows a momentum=3
Dynamic min=2
Gap setting=2

I thing the momentum is cleaner and clearer this time.

Attached Thumbnails
DOJI Indicator-range-3.png   DOJI Indicator-one-variation-momemtum-3.png  
Reply With Quote
The following user says Thank You to stephenszpak for this post:
 
  #13 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received



Fat Tails View Post
I have modified the ThrustBars Indicator and added a few lines of code.

Now tell me what you are going to do with it.

What I've done is take the other program you wrote for me:

PaintBarSMA2 and paired that with:

Momentum bars with:

Range=6
Dynamic min=2
Gap setting=2

As you can see from the first attachment (using old CL data) it creates dojis at times.
The obvious ones have a body of 2 ticks and a wick of 5 ticks. The two arrows show
two dojis in that attachment.

There are other dojis
as well that are not as doji-ish. In the second attachment there is a doji with a body
of 2 ticks and a wick of 4 ticks. That is indicated at the arrow. I'm thinking about where
to draw the line on what is or is not a doji...but that's another matter.

What I'm thinking about is using the PaintBarSMA2 color coding as being dominant (so to speak)
and also making dojis (at least the body=2 ticks wick=5 ticks ones) always color code to red, regardless
if the PaintBarSMA2 would have made them yellow or blue.

Red is my 'current trend has stopped for the moment' color.

Sometimes they will indeed color code to red, but that is because of coincidence related to the SMA2 program that
makes them red.

I applied the ana ThrustBars indicator with the PaintBarSMA2 indicator. I hoped the two programs
working together might be able to do the color coding I want. Can't seem to though.

Not really important, just wondering at this point if I did something wrong.

Please don't code anything for me just yet in case you were thinking about doing so.
I don't want you to waste time on this unless I feel I really really want to stick with it.
Maybe during my Thanksgiving days off I'll get an impression about all this.

Thanks,

- Stephen

Attached Thumbnails
DOJI Indicator-doji-again.png   DOJI Indicator-doji-again-again.png  
Reply With Quote
 
  #14 (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,602 received
Forum Reputation: Legendary


stephenszpak View Post
What I'm thinking about is using the PaintBarSMA2 color coding as being dominant (so to speak) and also making dojis (at least the body=2 ticks wick=5 ticks ones) always color code to red, regardless
if the PaintBarSMA2 would have made them yellow or blue.

Red is my 'current trend has stopped for the moment' color.

Sometimes they will indeed color code to red, but that is because of coincidence related to the SMA2 program that
makes them red.

I applied the ana ThrustBars indicator with the PaintBarSMA2 indicator. I hoped the two programs
working together might be able to do the color coding I want. Can't seem to though.

Not really important, just wondering at this point if I did something wrong.

Thanks,

- Stephen

@stephenszpak: I do not remember any PaintBarSMA2 indicator. Are you sure that I am the author?

If there are two different indicators coloring candles the outcome will be unpredictable, you would need to use a single indicator instead.

Reply With Quote
 
  #15 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received


Fat Tails View Post
@stephenszpak: I do not remember any PaintBarSMA2 indicator. Are you sure that I am the author?

If there are two different indicators coloring candles the outcome will be unpredictable, you would need to use a single indicator instead.

I didn't think it would be easy (sigh).

Link shows you were indeed the author.

https://futures.io/ninjatrader-programming/11142-basic-color-coding-according-direction-moving-average.html

May 29th, 2011, 08:39 PM

Reply With Quote
 
  #16 (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,602 received
Forum Reputation: Legendary


stephenszpak View Post
I didn't think it would be easy (sigh).

Link shows you were indeed the author.

https://futures.io/ninjatrader-programming/11142-basic-color-coding-according-direction-moving-average.html

May 29th, 2011, 08:39 PM

Yes, I see that I did code it at your request, but not knowing how you wanted to use it. So even if I have helped out with the code, I am not its creator.

Neither of the two indicators identifies small body bars. The Thrust Bar indicator detects genuine dojis (open = close) and let you select the candle outline color.

As a general rule you cannot combine two paint bar indicators within the same chart, because it is impossible to know which colors will prevail of the other colors.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #17 (permalink)
Elite Member
Zurich, Switzerland
 
Futures Experience: Intermediate
Platform: Ninja, CTS, TOS
Favorite Futures: ES, TF, CL, NQ, GC
 
Otterly's Avatar
 
Posts: 130 since Aug 2011
Thanks: 251 given, 57 received


cory View Post
doji when open = close leaves out many other doji variations, with this indi you can specify the minimum of body, tail and wick or tail or wick

I added some code to this to make a sound alert on paint of arrow but it is sounding close of every bar. Can someone tell me how to add a sound alert for when the arrow is drawn only?

I added this line ....

 
Code
Alert ("Doji", NinjaTrader.Cbi.Priority.High, "Doji", "Alert4.wav", 10, Color.Green, Color.Yellow);

like this


 
Code
if (wick0 >= wick && tail0 >= tail )
				    	DrawArrowDown("MyArrowDown"+CurrentBar, 0, High[0]+2* TickSize, barColorUp);
						Alert ("Doji", NinjaTrader.Cbi.Priority.High, "Doji", "Alert4.wav", 10, Color.Green, Color.Yellow);
					}
					else
					 if (wick0 >= wick || tail0 >= tail )
				    	DrawArrowDown("MyArrowDown"+CurrentBar, 0, High[0]+2* TickSize, barColorUp);
						Alert ("Doji", NinjaTrader.Cbi.Priority.High, "Doji", "Alert4.wav", 10, Color.Green, Color.Yellow);

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


Otterly View Post
I added some code to this to make a sound alert on paint of arrow but it is sounding close of every bar. Can someone tell me how to add a sound alert for when the arrow is drawn only?

I added this line ....
....

you need brackets for if condition if you want do more than one thing.

example:

if (...........)

{ // bracket open
do thing 1;
do thing 2;
do.....

} // bracket close

Reply With Quote
The following user says Thank You to cory for this post:
 
  #19 (permalink)
Trading Apprentice
Adair Village, OR
 
Futures Experience: Intermediate
Platform: NT,MT4,IB,OX,TOS
Favorite Futures: ES,EUR/USD
 
Posts: 3 since Jul 2010
Thanks: 5 given, 0 received

DOJI Indicator


cory View Post
doji when open = close leaves out many other doji variations, with this indi you can specify the minimum of body, tail and wick or tail or wick

Need a little help. I put this in a ZIP file and Imported to Ninja, but after restarting Ninja the indicator is not in the list.
Is there something wrong with the file that causes this to happen?
thanks for your answer.

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



n1144n View Post
Need a little help. I put this in a ZIP file and Imported to Ninja, but after restarting Ninja the indicator is not in the list.
Is there something wrong with the file that causes this to happen?
thanks for your answer.

this is cs file, not zip file.

1) copy cs file to folder Documents\NinjaTrader 7\bin\Custom\Indicator
2) re-import any zip file you imported successfully before
after these steps you should be able to find the new indicator.

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

Reply



futures io > > > > > DOJI Indicator

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
     


All times are GMT -4. The time now is 11:41 PM.

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-15 in 0.15 seconds with 19 queries on phoenix via your IP 54.163.210.170