NexusFi: Find Your Edge


Home Menu

 





50% Balance Point Rule


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one perryg with 34 posts (24 thanks)
    2. looks_two cory with 25 posts (15 thanks)
    3. looks_3 Mr III with 22 posts (15 thanks)
    4. looks_4 john5 with 22 posts (27 thanks)
      Best Posters
    1. looks_one john5 with 1.2 thanks per post
    2. looks_two perryg with 0.7 thanks per post
    3. looks_3 Mr III with 0.7 thanks per post
    4. looks_4 cory with 0.6 thanks per post
    1. trending_up 36,459 views
    2. thumb_up 83 thanks given
    3. group 12 followers
    1. forum 122 posts
    2. attach_file 46 attachments




 
Search this Thread

50% Balance Point Rule

  #41 (permalink)
 
perryg's Avatar
 perryg 
Rechovot
 
Experience: Advanced
Platform: NinjaTrader
Broker: CQG
Trading: Index,Currency and Energy futures
Posts: 1,644 since Jan 2010
Thanks Given: 508
Thanks Received: 6,288

The problem is that it is not systematic in taking each time 2 days from today, and then going back one day at a time taking the previous 2 days.

I do not want to put you to any trouble to write a simple version if it is not going to work. I f you do not mind then I can test it. So its up to you.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
18 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
  #42 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

I test fdax, 6e, 6a on this version and they look ok.

Attached Files
Elite Membership required to download: BalanceLine.cs
Reply With Quote
  #43 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690



cory View Post
I test fdax, 6e, 6a on this version and they look ok.

Thanks for sharing Cory!

Sadly, it doesn't work on NinjaTrader 7. I've tried to make it working, which succeeded partially. haha, perhaps anyone can give a suggestion of how to proceed?

Generated errors when importing in NT 7:
Line 177:
 
Code
DrawTriangleDown("Stop High" , 0, High[0] + TickSize, Color.Red);
Should be for NT7:
 
Code
DrawTriangleDown("Stop High" , false, 0, High[0] + TickSize, Color.Red);
Line 183:
 
Code
DrawTriangleUp("Stop Low" , 0, Low[0] - TickSize, Color.Blue);
Should be for NT7:
 
Code
DrawTriangleUp("Stop Low" , false, 0, Low[0] - TickSize, Color.Blue);
Line 199:
 
Code
DrawRay("ray", CurrentBar-arrayBar[1], todaysMidLine, 0, todaysMidLine, rangeColor,ls,lw);
Should be for NT 7:
 
Code
DrawRay("ray", false, CurrentBar-arrayBar[1], todaysMidLine, 0, todaysMidLine, rangeColor,ls,lw);
(Perhaps the indicator can also be improved by including sometime like ' + CurrentBar ' with the name of the drawed arrows and rays? That way the signals wil remain on the chart, which can be handy when examining historical data. On the other hand, the chart can become quite full that way).

The following problems from NT7 I'm not able to solve:
Line 151:
 
Code
DateTime bar = new DateTime(Bars.GetSessionBar(sessionsBarsAgo).Time.Year, Bars.GetSessionBar(sessionsBarsAgo).Time.Month, Bars.GetSessionBar(sessionsBarsAgo).Time.Day, Bars.SessionBegin.Hour, Bars.SessionBegin.Minute, Bars.SessionBegin.Second);
The last part of this line gives errors because NinjaTrader 7.0 uses a different logic in handling Time than NT 6.5 did. Does someone know how to "translate" this line to NT7?

According to the NinjaTrader 7.0 Code Breaking document:
 
Code
Bars.SessionBegin and Bars.SessionEnd are deprecated. Please use this:
BarsArray[int barSeries].Session.GetNextBeginEnd(DateTime time, out DateTime 
sessionBegin, out DateTime sessionEnd)
Also see: NinjaTrader Support Forum



Regards,

Reply With Quote
Thanked by:
  #44 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203

I'm thrilled to trip over this interesting thread. Big Big Thank You to both Perry and Cory!!

Would be great if one only needs the Balance Line to trade .. smile .. A quick newbie request please. Since it's based on the HH and LL of the previous 2 days, I added the indicator using the default setting per enclosed. Thanks to Cory for making it so user-friendly! Please correct me if I need to do more. Thank you.

Happy & Successful Trading!

Beth

Attached Thumbnails
Click image for larger version

Name:	Balance Line.JPG
Views:	229
Size:	55.8 KB
ID:	11624  
Visit my NexusFi Trade Journal Reply With Quote
  #45 (permalink)
 
perryg's Avatar
 perryg 
Rechovot
 
Experience: Advanced
Platform: NinjaTrader
Broker: CQG
Trading: Index,Currency and Energy futures
Posts: 1,644 since Jan 2010
Thanks Given: 508
Thanks Received: 6,288

Cory,

I have now tested on a number of Chart. I get the lines, but the calculations are incorrect. Please take a look a the enclosed chart, and see if that is the way you calculate. I think you are taking different highs and lows. If you have any questions let me know

Attached Thumbnails
Click image for larger version

Name:	50% balance point 3 days.png
Views:	301
Size:	106.4 KB
ID:	11627  
Started this thread Reply With Quote
Thanked by:
  #46 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

today is 20, for 6E chart Zenfire shows data for days 20, 19, 16, 15... it skips day 18 and 17. So from today the 20th we want 2 days back, looking at chart 2 days back = day 19 and 16 so I set day back = 4 to include all data back to the day 16. on the chart you can see 2 triangles marking where is the H/L for 16 thru 19.


I see we don't have the same definition for day 1 , day 2, day 3, seems like your 'day' is running as 2 days data when I just simply counting backward how many days.

Attached Thumbnails
Click image for larger version

Name:	6E 06-10  4_20_2010 (5 Min).jpg
Views:	250
Size:	66.9 KB
ID:	11629  
Reply With Quote
  #47 (permalink)
 
perryg's Avatar
 perryg 
Rechovot
 
Experience: Advanced
Platform: NinjaTrader
Broker: CQG
Trading: Index,Currency and Energy futures
Posts: 1,644 since Jan 2010
Thanks Given: 508
Thanks Received: 6,288

We have very different charts AND numbers. I think that your chart is not 24 hours, but you are using a SESSION chart that gives you only a certain part of the day. Use a session of 00:00 to 00:00 or 23:50. You are missing data

Attached Thumbnails
Click image for larger version

Name:	50% balance point - 5 min 6E.png
Views:	273
Size:	42.3 KB
ID:	11641  
Started this thread Reply With Quote
  #48 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


perryg View Post
We have very different charts AND numbers. I think that your chart is not 24 hours, but you are using a SESSION chart that gives you only a certain part of the day. Use a session of 00:00 to 00:00 or 23:50. You are missing data

I don't have good clean data there are many holes in them, but anyway here is the latest as you can see select 3 days back and it will calculate just day 3 + day 4 back

Attached Thumbnails
Click image for larger version

Name:	CL 05-10  4_20_2010 (30 Min).jpg
Views:	298
Size:	77.3 KB
ID:	11660  
Attached Files
Elite Membership required to download: BalanceLine.cs
Reply With Quote
Thanked by:
  #49 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,213
Thanks Received: 101,599

I'm looking to make an EasyLanguage version of this.

I may be way off, but isn't it just:

Today = 4/20

To plot today's balance point, we need the LOW from yesterday 4/19, and the HIGH from the prior day 4/16. Divide by two.

?

If so, here is my EasyLanguage version. I will make a separate thread so this one doesn't get sidetracked, but wanted input if I am right or wrong on the code. Seems too simple if I am right, so I'm probably not

 
Code
                            
inputs:

    
tlstyle (1),
    
tlsize (3);
    

vars:
    
yhigh (0),
    
yhigh2 (0),
    
thigh (0),
    
ylow (0),
    
tlow (0),
    
tlid (0);

once Plot1(0"Balance Point");
    
if 
date <> date[1then begin

    yhigh2 
yhigh;
    
yhigh thigh;
    
ylow tlow;
    
tlow L;
    
thigh H;
    
    
tlid TL_New(datetime, (yhigh2+ylow) / 2dateSess1EndTime, (yhigh2+ylow) / 2);
    
TL_SetStyle(tlidtlstyle);
    
TL_SetSize(tlidtlsize);
    
TL_SetColor(tlidGetPlotColor(1));

end;

if 
thigh then thigh H;
if 
tlow then tlow L
[img]https://nexusfi.com/v/dju36j.png[/img]

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #50 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090



Big Mike View Post
I'm looking to make an EasyLanguage version of this.

I may be way off, ...

check out his attachment
https://nexusfi.com/attachments/ninjatrader-programming/11627d1271778057-50-balance-point-rule-50-balance-point-3-days.png

Reply With Quote




Last Updated on February 12, 2019


© 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