Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Toolbar Buttons
Collapse
X
-
Hi I was wondering if anybody was having issues with this strategy in NT 7.01000.6?
I started the strategy, immediately turned off the auto-trading so that the "Manual" was in red and then I turned off long entries as well. Then the strategy started to taking long trades on it's own.
Is this an issue that only I'm seeing?
Comment
-
Hi snaphook,
I've been trying to move your buttons and separtors to a 2nd toolbar (just below the Ninja toolbar). But unfortunately, I cannot get it to work.
I've been told that I need to add:
Toolstrip ts = new ToolStrip();
ChartControl.Controls.Add(ts);
I just can't figure out where to place this code? Do you know how to do it in your code? Any assistance you could provide would be most greatly appreciated.
fosch
Comment
-
I've never tried to add a new toolbar.
I am not really a programmer, but a follower of examples and a copy cat and sometimes it is tough to follow some of the examples on the net and translate them to NT.
I'm not sure how, or if, you can do it. I think I read a post by one of the NT guys, wonder why there are no gals, that NT was written in such a manner that you can not add new toolbars.
good luck.
Comment
-
Thanks Snaphook,
Yeah. I've tried many permutations. I actually am able to add a toolbar, but it is always above the Ninja Toolbar, and I cannot add buttons to it. Also, once added. I cannot get rid of it like I can the buttons. Real bummer.
Thanks for your reply.
fosch
Comment
-
It needs something added to trigger a trade such as a MA crossover. Right now it places trades if Close = High or Low of Bar. I put these in as dummy requirements for illustration only. Check lines 163 and 165.
Edit: I just noticed an oversight.
Lines 177 should be:
if(trade.Contains("L") && btnLongEntry.Text == "Enter Long")
and 184 should be:
if(trade.Contains("S") && btnShortEntry.Text == "Sell Short")Last edited by snaphook; 09-13-2011, 05:50 AM.
Comment
-
Thanks for all this work, guys!
Does anyone know if a button on the chart panel could be made click-draggable around the panel? Or can it only be in one fixed position?
Bryan
Comment
-
How does one drag a button w/o clicking it?
I suspect if you put a button in a dialog form, set it to be on top, you could then move it around anywhere you'd like. Take a look at my Notes Panel or WorkspaceChanger in NT7 Indies for examples of opening a form.Last edited by snaphook; 09-27-2011, 07:23 AM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by gleichnerany, Today, 01:17 AM
|
0 responses
2 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
44 views
0 likes
|
Last Post Today, 12:28 AM | ||
Started by f.saeidi, Today, 12:12 AM
|
0 responses
4 views
0 likes
|
Last Post
by f.saeidi
Today, 12:12 AM
|
||
Started by Conall, Today, 12:06 AM
|
0 responses
6 views
0 likes
|
Last Post
by Conall
Today, 12:06 AM
|
||
Started by proptradingshop, 03-21-2024, 09:50 AM
|
6 responses
27 views
0 likes
|
Last Post Today, 12:02 AM |
Comment