contribution in file sharing with a file.THANKS
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Toolbar Buttons
Collapse
X
-
Toolbar Buttons
I got this code from e mini-fools site and compile in NT7.there were some errors in it but fixed.What i was looking ,,,have some buttons on top of chart to turn on/off strategy,,instead of opening and using enable/disable function.Specially when news are comming OR FOMC rate annoucment is due and b4 market hit u,,,just turn on or off by one click.Plz use it on your own risk.NO responsibility on my side.Its my first
contribution in file sharing with a file.THANKSTags: None
-
Hello alfa123, yeah we have the same thing looking for. I also want to have an idea on how to have buttons on top of the chart to turn on/off strategy so that no need for us to go to the strategy tab to enable and disable strategy which could take a lot of time. For example, we detected a gap then something had happen in the market we want to off directly our strategies so that we could not be hit by the market and stay out from the loss.Originally posted by alfa123 View PostI got this code from e mini-fools site and compile in NT7.there were some errors in it but fixed.What i was looking ,,,have some buttons on top of chart to turn on/off strategy,,instead of opening and using enable/disable function.Specially when news are comming OR FOMC rate annoucment is due and b4 market hit u,,,just turn on or off by one click.Plz use it on your own risk.NO responsibility on my side.Its my first
contribution in file sharing with a file.THANKS
Comment
-
Yes, but I don't know how it really works well I mean his full potential. If I have 5 strategies running can I control all of it by using this ToolBarButtons?
Comment
-
alfa,
I have found a problem in Dispose(). With it enabled, not commented out, any draw objects are persistent and are not erased upon removal of the strategy.
However, with it commented out, additional buttons are added.
To Resolve, simply add
RemoveDrawObjects();
to Dispose()
Comment
-
Shell
Here is a modification that allows for auto and manual entries.
It adds two buttons for manual entry. The Auto button must be set to Manual and the Long or Short entry buttons enabled (Green). Then a click on either manual button will place a market order, Long or Short.
I hope there aren't too many errors.Attached FilesLast edited by snaphook; 03-21-2011, 11:14 AM.
Comment
-
Excellent!
Many thanks. This is much more than I expected. Much appreciated.Originally posted by snaphook View PostHere is a modification that allows for auto and manual entries.
It adds two buttons for manual entry. The Auto button must be set to Manual and the Long or Short entry buttons enabled (Green). Then a click on either manual button will place a market order, Long or Short.
I hope there aren't too many errors.
Comment
-
Another update
This adds:
1) A Flatten button that immediately closes open positions,
2) separators between the buttons,
3) a confirmation Message Box when entering Auto Trading from Manual trading.Attached Files
Comment
-
Snaphook,
great work. Thanks for sharing this. Did you ever think about changing it this way so that you can add the buttons vertically in the chart? (Because the toolbar is getting so extended and the chart too)
Just an idea.
Thanks again and best regards
Tony
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment