50% Balance Point Rule - NinjaTrader Programming | futures io social day trading
futures io futures trading


50% Balance Point Rule
Updated: Views / Replies:13,927 / 74
Created: by perryg Attachments:31

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

50% Balance Point Rule

  #41 (permalink)
Elite Member
Rechovot
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: CQG
Favorite Futures: Index,Currency and Energy futures
 
perryg's Avatar
 
Posts: 1,703 since Jan 2010
Thanks: 504 given, 6,262 received

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.

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

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

Attached Files
Register to download File Type: cs BalanceLine.cs (11.2 KB, 25 views)
Reply With Quote
 
  #43 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received



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,


Last edited by Jura; April 20th, 2010 at 09:05 AM. Reason: Formatting errors.
Reply With Quote
The following user says Thank You to Jura for this post:
 
  #44 (permalink)
 Vendor: www.ezcolortrading.com 
Cambridge, Ontario
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: 6E
 
Posts: 1,773 since Dec 2009
Thanks: 1,258 given, 1,196 received

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
50% Balance Point Rule-balance-line.jpg  
Reply With Quote
 
  #45 (permalink)
Elite Member
Rechovot
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: CQG
Favorite Futures: Index,Currency and Energy futures
 
perryg's Avatar
 
Posts: 1,703 since Jan 2010
Thanks: 504 given, 6,262 received

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
50% Balance Point Rule-50-balance-point-3-days.png  
Reply With Quote
The following user says Thank You to perryg for this post:
 
  #46 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,216 since Jun 2009
Thanks: 628 given, 6,314 received
Forum Reputation: Legendary

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
50% Balance Point Rule-6e-06-10-4_20_2010-5-min-.jpg  
Reply With Quote
 
  #47 (permalink)
Elite Member
Rechovot
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: CQG
Favorite Futures: Index,Currency and Energy futures
 
perryg's Avatar
 
Posts: 1,703 since Jan 2010
Thanks: 504 given, 6,262 received

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
50% Balance Point Rule-50-balance-point-5-min-6e.png  
Reply With Quote
 
  #48 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,216 since Jun 2009
Thanks: 628 given, 6,314 received
Forum Reputation: Legendary


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
50% Balance Point Rule-cl-05-10-4_20_2010-30-min-.jpg  
Attached Files
Register to download File Type: cs BalanceLine.cs (13.0 KB, 24 views)
Reply With Quote
The following user says Thank You to cory for this post:
 
  #49 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,221 received

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
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

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



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

I may be way off, ...

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

Reply With Quote

Reply



futures io > > > > > 50% Balance Point Rule

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
help defining a trade rule with excel ALFASSY Sierra Chart Programming 10 June 13th, 2011 09:37 PM
Coin flips to reach 50-50 distribution aligator Traders Hideout 7 April 5th, 2011 05:08 PM
The Rule of 70 worldwary Trading Journals 56 March 31st, 2011 03:54 PM
IRS Wash Sales Rule monpere Stocks and ETFs Trading 4 December 4th, 2010 04:24 PM


All times are GMT -4. The time now is 03:29 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-13 in 0.14 seconds with 20 queries on phoenix via your IP 54.226.132.197