NexusFi: Find Your Edge


Home Menu

 





paintbar based on inside and outside bars


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one wh with 6 posts (1 thanks)
    2. looks_two hanaa with 4 posts (0 thanks)
    3. looks_3 Andrew with 3 posts (0 thanks)
    4. looks_4 sukhsan with 1 posts (0 thanks)
    1. trending_up 7,760 views
    2. thumb_up 2 thanks given
    3. group 5 followers
    1. forum 16 posts
    2. attach_file 11 attachments




 
Search this Thread

paintbar based on inside and outside bars

  #1 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512

hallo have rewrite my inside bar code and add simple function for paintbar studies

 
Code
                            
if (CurrentBar >= 2
            {
                
spreadtmp spread TickSize;
                
                if((
Bars.BarsSinceSession == 1) || (Close[0] > this.OH[1]) || (Close[0] < this.OL[1]))
                {
                    
OH.Set(High[0]+spreadtmp);
                    
OL.Set(Low[0]-spreadtmp);
                    
                    if(
High[0] > High[1])
                        
BarColor Color.Blue;
                    if(
Low[0] < Low[1])
                        
BarColor Color.Red;
                    
                }
                else
                {
                    
OH.Set(OH[1]);
                    
OL.Set(OL[1]);
                    
BarColor Color.Gray;
                }
            } 
see image and file

wh

Attached Thumbnails
Click image for larger version

Name:	new paintbar.png
Views:	639
Size:	175.7 KB
ID:	1006  
Attached Files
Elite Membership required to download: InsideBarv2.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
Legends Trading: Ask Me Anything (AMA) w/Greg Khojikian CEO
Trading Reviews and Vendors
static margin on the right side of a chart
NinjaTrader
What You Know vs How much you know about it
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Vinny E-Mini & Algobox Review TRADE ROOM
38 thanks
ApexTraderFunding.com experience and review
35 thanks
System Performance Stats Comparison
14 thanks
GFIs1 1 DAX trade per day journal
13 thanks
Spoo-nalysis ES e-mini futures S&P 500
8 thanks
  #2 (permalink)
 
HJay's Avatar
 HJay 
USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: futures
Posts: 147 since Aug 2009

Wh, I saw where you mentioned a RHiekienAshe indicator but I have looked all over the site and can't seem to find it. I use the standard indicator today so I am very interested in having a look.. Any ideas?

Sorry for being off topic. This looks interesting ad well.

Thanks HJay

Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
hanaa
canada
 
Posts: 34 since Jun 2009
Thanks Given: 4
Thanks Received: 9


DH what are you using for the text at bottom of chart that says long at x price and short at x price if you do not mingd sharing
thanks
hanaa

Reply With Quote
  #4 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512


hanaa View Post
DH what are you using for the text at bottom of chart that says long at x price and short at x price if you do not mingd sharing
thanks
hanaa

 
Code
                            
    DrawTextFixed("Stop""Short: " +OH[0] +" Long: " +OL[0], tPositionColor.Black, new Font("Arial Rounded MT Bold"12), Color.BlackColor.White2); 


Started this thread Reply With Quote
  #5 (permalink)
hanaa
canada
 
Posts: 34 since Jun 2009
Thanks Given: 4
Thanks Received: 9

thank you for your help but have no idea about ninja programming.but you are a very kind person god bless you .any way of posting your template and indicators used
thanks
hanaa

Reply With Quote
  #6 (permalink)
 
websouth's Avatar
 websouth 
Perdido Beach, AL
Market Wizard
 
Experience: Intermediate
Platform: graph paper
Trading: The shiny stuff
Posts: 1,209 since Jul 2009
Thanks Given: 1,116
Thanks Received: 1,335

this thing does darvas boxes better than Darvas...

I know a few of you scalp the EUR/USD. If you use a 1 range chart. This indicator along with the "WH special" doubleMA 4ADXVMA/40ADXVMA gives nice signals. Thanks WH

Attached Thumbnails
Click image for larger version

Name:	insideBarScalp.jpg
Views:	407
Size:	125.8 KB
ID:	1027   Click image for larger version

Name:	darvas.jpg
Views:	352
Size:	126.2 KB
ID:	1028  
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512

ok thanx to websouth. but i think tick charts work better.

Attached Thumbnails
Click image for larger version

Name:	2rangechart.png
Views:	309
Size:	90.0 KB
ID:	1033   Click image for larger version

Name:	21 tick.png
Views:	261
Size:	145.8 KB
ID:	1034  
Started this thread Reply With Quote
  #8 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512

 
Code
                            
private int IsInTrend()
        {
            
isTrend 0;
            
            
double ematmp EMA(Close,3)[0] - EMA(Close,5)[0] +
                                
EMA(Close,8)[0] - EMA(Close,10)[0] +
                                
EMA(Close,12)[0] - EMA(Close,15)[0] +
                                
EMA(Close,30)[0] - EMA(Close,35)[0] +
                                
EMA(Close,40)[0] - EMA(Close,45)[0] +
                                
EMA(Close,50)[0] - EMA(Close,55)[0];
            
            if(
High[0] > High[1] && ematmp >sigline)
                        
isTrend 1;
            else if(
Low[0] < Low[1] && ematmp <sigline*-1)
                        
isTrend = -1;
            else
                        
isTrend 0;
            
            return 
isTrend;
            
            
        } 
add new function to this to filter out whipsaws bars. parameter are optimized for eurusd for example i use an 233 tick chart and 21 tick chart aka fibonacci.

233 tick chart InsideBarv2 ( 0,0005, 2)
21 tick chart InsideBarv2 (0,0001,2)

the first value is a consolidation filter used in posted method. second is the spread mean difference between bid and ask.

this indicator is build for priceaction.

i can not give an explantion (why i build this: input came from a german trading book and from ross 123 hook) but i think the chart tell you.


Attached Thumbnails
Click image for larger version

Name:	21_233 tick.png
Views:	383
Size:	437.7 KB
ID:	1035  
Attached Files
Elite Membership required to download: InsideBarv2.cs
Started this thread Reply With Quote
  #9 (permalink)
hanaa
canada
 
Posts: 34 since Jun 2009
Thanks Given: 4
Thanks Received: 9

sory for my ignorance buthow to import cs.file format into ninja trader.any way to post file in zip format
thank you for your help
regard
hanaa

Reply With Quote
  #10 (permalink)
 sukhsan 
Ottawa, Canada
 
Experience: Beginner
Platform: Ninja
Broker: Mirus,Zen-Fire
Trading: Currencies
Posts: 120 since Jun 2009
Thanks Given: 109
Thanks Received: 79


hanaa,

download file direct to Indicator folder then complied


Document---ninja6.5--bin--custom-indicator

SSS

Reply With Quote




Last Updated on July 26, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts