PDA

View Full Version : Global Drawing Object modification in code


rtrader
05-22-2010, 04:10 PM
In v7, I notice that when I create a drawing object programatically in an indicator - e.g. a regression channel - and then clicking on it, the properties "Attach to" is greyed out even when unlocked. It cannot be changed as far as I can see.

Is there any way of:

1) Creating a drawing object - in code only - on one chart and propagating it across other charts?

2) Creating a manually drawn object on one chart, propagating it across other charts (via "Attach To") but then have an indicator on one chart which will modify it. This should in turn modify the other objects on the other charts.

All I have found is a reference to global objects tags having "@" as the first character and "global" as a prefix to the drawing object name but no other information on how the above might be done.

Any help or code would be much appreciated. Thanks.

NinjaTrader_Ray
05-22-2010, 07:26 PM
On item #1, it is not possible to do this via code, this is on our list of requested features. On #2, yes I believe this is possible. Your indicator must grab that chart object (must of course know its name) and can then amend its properties which in turn would propagate across all charts.

http://www.ninjatrader.com/support/forum/showthread.php?t=22872&highlight=foreach+drawobjects

http://www.ninjatrader.com/support/forum/showthread.php?t=23670&highlight=foreach+drawobjects

http://www.ninjatrader.com/support/forum/showthread.php?t=25931&highlight=foreach+drawobjects

See if the above thread references provide some guidance.

rtrader
05-23-2010, 02:38 AM
Thanks very much Ray.

rt-trader
09-07-2010, 03:47 PM
Hi,

Is there any update on when/if item 1 in Rays reply below (post #2) will be available?

Thanks

NinjaTrader_Josh
09-07-2010, 04:06 PM
rt-trader,

It is on our list of future considerations. Right now our priorities are to resolve critical bugs and get NT7 to a production state. Then we will be able to review our feedback list again after that to see what we can do.