Using Draw Methods to Plot to the Future Part of the Chart
I have a few projective approaches I'd like to test, projective in the way Fibonacci & Gann techniques are. They attempt to identify time & price points in the future that are of interest. The NinjaScript OnBarUpdate() method seems to prohibit programmatically drawing objects or plotting indicators to the future part of the chart, of whatever bar is being currently calculated. One can manually place rectangles and ellipses anywhere one desires, including the future area of the chart. Is there a way to programmatically place drawing objects to the future side (to the right) of whatever bar is being calculated, including the bar being created "now"?
I have seen some stuff on overriding the plot() method. Can that be used to programmatically draw the draw object methods like DrawRectangle(), DrawEllipse() on the future side of the chart, or does this only work for price-derivative indicators like MACD or RSI? And, does that require translating back and forth between time/price and X/Y coordinates?
Can the draw object methods themselves be overridden, so that they can take negative values for their x-axis/bars back values? They would then plot to the future. I prefer to stay with draw object methods if at all possible due to the simplicity of the arguments that they take, prices, numbers of bars, etc.
Wow, Fat Tails,
That's the first time I've heard of that working. I have tried it with a rectangle before, but it did not work at the time. What version and build were you on? Tomorrow I will have time to code a test. If it works on NT7 (which is new to me) I will be thrilled, really.
Thanks for your quick reply,
P.S. Confirmation or thoughts from others is welcome, too.
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.
The following user says Thank You to Big Mike for this post: