ChartTrader & Order Button size - width - NinjaTrader Programming | futures io social day trading
futures io futures trading


ChartTrader & Order Button size - width
Updated: Views / Replies:12,636 / 66
Created: by jsengxx Attachments:6

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

ChartTrader & Order Button size - width

  #51 (permalink)
Membership Revoked
los angeles
 
Futures Experience: Intermediate
Platform: nt
Favorite Futures: cl
 
Sunil P's Avatar
 
Posts: 292 since Jan 2012
Thanks: 427 given, 175 received

'I will give you a Hmaburger for it TMFT and pay you next Tuesday for it'....Wimpy

Reply With Quote
 
  #52 (permalink)
Elite Member
Houston,Tx
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,208 given, 4,293 received


sunil patel View Post
'I will give you a Hmaburger for it TMFT and pay you next Tuesday for it'....Wimpy

... you know the Cardiologist won't let me have a hamburger....

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
 
  #53 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 523 since Feb 2010
Thanks: 470 given, 629 received


OK, I'll scratch that idea.

What concerned me most about the other methods is that they all involve unsupported features, which NT could eliminate at any time...not that I don't use lots of other unsupported features.

Reply With Quote
 
  #54 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


futuretrader View Post
OK, I'll scratch that idea.

What concerned me most about the other methods is that they all involve unsupported features, which NT could eliminate at any time...not that I don't use lots of other unsupported features.

I feel the same way you do. Although I think this approach is pretty cool technically, its un-supportability is the reason I chose not to go that route. If you want a more supportable approach, what I do is start a strategy normally in the command center, and load a normal indicator on my chart as usual, and have the indicator and strategy communicate with each other with a global variable as described in post #31.

That approach has several advantages. First it is fully supported, second, it is simple and straight forward, third, because the indicator is fully de-coupled from the strategy, you have much more flexibility. For instance, you can alter the management of a trade in-flight by sending new commands to the strategy while it is in the middle of a trade, or pause the strategy, etc. Commands to the strategy can come from anywhere at anytime, from the same indicator that started a trade, or any other indicator even from a different chart, or any other strategy. When the trade is over, the strategy is still running, so you have access to strategy aggregated data, that can be used for future trade decisions, etc., etc. I've been using this approach ever since NT6.5.


Last edited by monpere; March 14th, 2012 at 11:10 AM.
Reply With Quote
The following 3 users say Thank You to monpere for this post:
 
  #55 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 523 since Feb 2010
Thanks: 470 given, 629 received

Thanks, monpere, I decided to pursue your method using the global variable.

How do you monitor the 'command' variable in your strategy, via a timer or just checking within one of the update methods?

Reply With Quote
 
  #56 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


futuretrader View Post
Thanks, monpere, I decided to pursue your method using the global variable.

How do you monitor the 'command' variable in your strategy, via a timer or just checking within one of the update methods?

I check in OnMarketData(), and I have a 1 second timer check.


Last edited by monpere; March 14th, 2012 at 03:06 PM.
Reply With Quote
The following user says Thank You to monpere for this post:
 
  #57 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 999 given, 1,595 received


monpere View Post
I feel the same way you do. Although I think this approach is pretty cool technically, its un-supportability is the reason I chose not to go that route. If you want a more supportable approach, what I do is start a strategy normally in the command center, and load a normal indicator on my chart as usual, and have the indicator and strategy communicate with each other with a global variable as described in post #31.

That approach has several advantages. First it is fully supported, second, it is simple and straight forward, third, because the indicator is fully de-coupled from the strategy, you have much more flexibility. For instance, you can alter the management of a trade in-flight by sending new commands to the strategy while it is in the middle of a trade, or pause the strategy, etc. Commands to the strategy can come from anywhere at anytime, from the same indicator that started a trade, or any other indicator even from a different chart, or any other strategy. When the trade is over, the strategy is still running, so you have access to strategy aggregated data, that can be used for future trade decisions, etc., etc. I've been using this approach ever since NT6.5.

Mon,

I need to see typical setup codes for the Strategy that is triggered by an indicator ... there is none posted on futures.io (formerly BMT) (Or is there any ?) ... we already have a typical indicator posted in this regard, but the indicator does not contain codes that call a Strategy. Could we have a typical indicator/Strategy setup/codes scenario that we can build on ?

Lolu

Reply With Quote
 
  #58 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


lolu View Post
Mon,

I need to see typical setup codes for the Strategy that is triggered by an indicator ... there is none posted on futures.io (formerly BMT) (Or is there any ?) ... we already have a typical indicator posted in this regard, but the indicator does not contain codes that call a Strategy. Could we have a typical indicator/Strategy setup/codes scenario that we can build on ?

Lolu

My indicator and strategy have a lot of customized code for my particular style of trading, but a simple case would look like this:

 
Code
//###
//### Strategy
//###
public class TradeManager_Global {
    public static string command = "";
}

namespace NinjaTrader.Strategy
{
...
    protected override void OnBarUpdate() {
        if ( TradeManager_Global.command.Contains("Buy") ) {
            EnterLong();
            TradeManager_Global.command = "";
        }
...
    }
}
 
Code
//###
//### Indicator
//###
protected override void OnBarUpdate() {
   ...
   if ( buyButtonPressed ) TradeManager_Global.command = "Buy";
   ...
}
Some of my commands may look like the following depending on what buttons I press etc.:

<ATMmgrCmd>CL 04-12, BuyNextBarRange 1 ATM_'FUT 5R_LOCAL'</ATMmgr>"

which says buy 1 CL contact at the close of the next range bar using the "FUT 5R_LOCAL" NT ATM Strategy.

<ATMmgrCmd>CL 04-12, BuyMarket 1 +10-5 @5:-3 @7:-2 @8:+1 @9:+5>

which means: Buy 1 CL contract at Market, Target 10 ticks (+10), Stop 5 Ticks (-5), At 5 Ticks in the profit move stop to 3 ticks behind my entry (@5:-3), at 7 ticks in profit move stop to 2 ticks behind the entry (@7:-2), at 8 Ticks in profit move stop to break even +1 (@8:+1), at 9 ticks in profit move stop to entry +5 ticks (@9:+5), etc. With this format, the strategy can duplicate the NT ATM's, but have unlimited number of steps, and unlimited flexibility. I put the string "+10-5=8 @5:-3 @7:-2 @8:+1 @9:+5" in an indicator parameter, and pass it along with the command when I need a flexible ATM. You can customize everything else as you wish, of course you have to write the code to parse and execute the commands.


Last edited by monpere; March 14th, 2012 at 04:26 PM.
Reply With Quote
The following 4 users say Thank You to monpere for this post:
 
  #59 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 999 given, 1,595 received


monpere View Post
My indicator and strategy have a lot of customized code for my particular style of trading, but a simple case would look like this:

 
Code
//###
//### Strategy
//###
public class TradeManager_Global {
    public static string command = "";
}

namespace NinjaTrader.Strategy
{
...
    protected override void OnBarUpdate() {
        if ( TradeManager_Global.command.Contains("Buy") ) {
            EnterLong();
            TradeManager_Global.command = "";
        }
...
    }
}
 
Code
//###
//### Indicator
//###
protected override void OnBarUpdate() {
   ...
   if ( buyButtonPressed ) TradeManager_Global.command = "Buy";
   ...
}
Some of my commands may look like the following depending on what buttons I press etc.:

<ATMmgrCmd>CL 04-12, BuyNextBarRange 1 ATM_'FUT 5R_LOCAL'</ATMmgr>"

which says buy 1 CL contact at the close of the next range bar using the "FUT 5R_LOCAL" NT ATM Strategy.

<ATMmgrCmd>CL 04-12, BuyMarket 1 +10-5 @5:-3 @7:-2 @8:+1 @9:+5>

which means: Buy 1 CL contract at Market, Target 10 ticks (+10), Stop 5 Ticks (-5), At 5 Ticks in the profit move stop to 3 ticks behind my entry (@5:-3), at 7 ticks in profit move stop to 2 ticks behind the entry (@7:-2), at 8 Ticks in profit move stop to break even +1 (@8:+1), at 9 ticks in profit move stop to entry +5 ticks (@9:+5), etc. With this format, the strategy can duplicate the NT ATM's, but have unlimited number of steps, and unlimited flexibility. I put the string "+10-5=8 @5:-3 @7:-2 @8:+1 @9:+5" in an indicator parameter, and pass it along with the command when I need a flexible ATM. You can customize everything else as you wish, of course you have to write the code to parse and execute the commands.

Mon,

See my question in the attached screenshot (just getting to understand your concepts ... I want to immediately start to create a setup).

Lolu

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #60 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received



lolu View Post
Mon,

See my question in the attached screenshot (just getting to understand your concepts ... I want to immediately start to create a setup).

Lolu

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

The specialized command goes in the indicator OnBarUpdate() code. The strategy is only reading that command, and resetting it after it has read and processed it.

 
Code
//###
//### Indicator
//###
protected override void OnBarUpdate() {
   ...
   if ( buyButtonPressed ) TradeManager_Global.command = "BuyNextBarRange 1 ATM_'FUT 5R_LOCAL'";
   ...
}


Last edited by monpere; March 14th, 2012 at 04:51 PM.
Reply With Quote
The following 2 users say Thank You to monpere for this post:

Reply



futures io > > > > > ChartTrader & Order Button size - width

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
ninja & AutoHotKey for order entrys bobarian NinjaTrader 55 April 6th, 2016 03:59 PM
Order and Position Tracker - Open P&L ccfeldt MultiCharts 13 July 6th, 2011 09:22 AM
Order Flow & The Balance of Trade - Then & Now T1P1 Traders Hideout 11 May 24th, 2011 09:33 PM
Expected slippage vs order size fluxsmith Psychology and Money Management 21 March 23rd, 2011 04:03 PM
Liquidity & Order Fills DarrenH Traders Hideout 4 January 5th, 2011 08:09 AM


All times are GMT -4. The time now is 12:41 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-11 in 0.15 seconds with 20 queries on phoenix via your IP 107.20.115.174