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,653 / 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

  #31 (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
@TMFT,

I have the same question as monpere regarding the Close button. Also, are you using monpere's method of passing orders to a strategy via the clipboard, or something else?

The other approach I'd thought of is to rework the ChartTrader itself and invoke the eventhandlers associated with its buttons to submit orders. But that would limit the order types to Buy Market, Buy Bid etc.

I've recently been using a simpler way to communicate between the indicator and strategy using a public class declared outside of the strategy namespace, as follows:

In the Strategy, I have:

//###
//### Global Command
//###
public class TradeManager_Global {
public static string command = "";
}

//###
//### Main Strategy
//###
namespace NinjaTrader.Strategy
{
... Main strategy code ...
}

In my Indicator code, I have:

TradeManager_Global.command = "Put your command here";


Last edited by monpere; February 23rd, 2012 at 10:21 AM.
Reply With Quote
The following 4 users say Thank You to monpere for this post:
 
  #32 (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


monpere View Post
Is the close button on the chart trader the default close button from NT, or is it a button that you created in the chart trader, that tells the strategy to close the trade?

It is the default close button. I just moved it.


lolu View Post
@TMFT,

Have you read through this thread ? It may be of interest and maybe you can suggest (NOT code 'cos of your Med's advice) some codes that can take the bPTA indicator to a new level. I particularly initially had a challenge on the Close button implementation of bPTA 'cos the NT/Windows keyboard mapping setup does not conform with the keyboard combinations on my Mac machine, but I eventually got over it. Have a look @ my post here.

Lolu

I read through the thread but I don't understand what your indicator does. (The mind is the first thing to go when you get old... )


futuretrader View Post
@TMFT,

I have the same question as monpere regarding the Close button. Also, are you using monpere's method of passing orders to a strategy via the clipboard, or something else?

The other approach I'd thought of is to rework the ChartTrader itself and invoke the eventhandlers associated with its buttons to submit orders. But that would limit the order types to Buy Market, Buy Bid etc.

I call a strategy from an indicator. It passes the info to the strategy which generates the orders and invokes the ATM strategy to handle the stops and targets.

 
Code
 #region Variables
        private NinjaTrader.Strategy.TMFTGuidedStrategy trader;
        private Button buyRange;
        private Button sellRange;

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
The following 4 users say Thank You to ThatManFromTexas for this post:
 
  #33 (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


 
Code
 #region Variables
        private NinjaTrader.Strategy.TMFTGuidedStrategy trader;
        private Button buyRange;
        private Button sellRange;
.
Where and how do you define "NinjaTrader.Strategy.TMFTGuidedStrategy"?

Reply With Quote
 
  #34 (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: 1,000 given, 1,595 received


ThatManFromTexas View Post
I read through the thread but I don't understand what your indicator does. (The mind is the first thing to go when you get old... )

It is really not my indicator, it is @terratec's. The thread is @terratec's too.

The indicator does Order placement without any recourse to calling a Strategy and/or ATM Strategy. It places Market or Stop Orders with pre-defined Target(s) and SL(s); it does some Money Management too.

Lolu

Reply With Quote
 
  #35 (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


monpere View Post
 
Code
 #region Variables
        private NinjaTrader.Strategy.TMFTGuidedStrategy trader;
        private Button buyRange;
        private Button sellRange;
.
Where and how do you define "NinjaTrader.Strategy.TMFTGuidedStrategy"?

I created a strategy named TMFTGuidedStrategy the way you normally do and had the indicator pass the variables to it.

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
The following 3 users say Thank You to ThatManFromTexas for this post:
 
  #36 (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


ThatManFromTexas View Post
I created a strategy named TMFTGuidedStrategy the way you normally do and had the indicator pass the variables to it.

Cool idea, thanks. Does that strategy live only during the time the trade is open, and then dies once the trade closes? And also, can you still communicate with that strategy while the trade is open? For instance, one of the things I need to do is while a trade is open, and I am getting close to my target, or it's getting close to the end of the day, I want to press a button and tell the strategy to change it's current trailing stop scheme to a tighter trailing stop algorithm, and other similar on the fly trade management changes.

Reply With Quote
 
  #37 (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


monpere View Post
Cool idea, thanks. Does that strategy live only during the time the trade is open, and then dies once the trade closes? And also, can you still communicate with that strategy while the trade is open? For instance, one of the things I need to do is while a trade is open, and I am getting close to my target, or it's getting close to the end of the day, I want to press a button and tell the strategy to change it's current trailing stop scheme to a tighter trailing stop algorithm, and other similar on the fly trade management changes.

This was designed to allow me to use the push buttons for Range Bars. When I press a button the strategy is initiated and places the orders, the ATM strategy is invoked to manage the stops and targets , which allows me to manually drag the stops and targets to new locations and the ATM strategy will continue to monitor them at their new positions. When I press the close button, it closes all positions and all pending orders.

I don't use a trailing stop so I have never tried to change a trailing stop through the strategy. Sorry.

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
The following user says Thank You to ThatManFromTexas for this post:
 
  #38 (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


ThatManFromTexas View Post
This was designed to allow me to use the push buttons for Range Bars. When I press a button the strategy is initiated and places the orders, the ATM strategy is invoked to manage the stops and targets , which allows me to manually drag the stops and targets to new locations and the ATM strategy will continue to monitor them at their new positions. When I press the close button, it closes all positions and all pending orders.

I don't use a trailing stop so I have never tried to change a trailing stop through the strategy. Sorry.

Thanks. By the way, I just recently found out that using unmanaged orders in a strategy, also allows you to move the stop and target orders like when you call ATM's from the strategy.

Reply With Quote
The following 2 users say Thank You to monpere for this post:
 
  #39 (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


ThatManFromTexas View Post

I call a strategy from an indicator. It passes the info to the strategy which generates the orders and invokes the ATM strategy to handle the stops and targets.

[COLOR="DarkRed"]


Does the strategy get the ATM strategy to use directly from the ChartTrader setting?


@monpere, @ThatManFromTexas, thanks for all the info, it's very helpful.

Reply With Quote
 
  #40 (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



monpere View Post
Thanks. By the way, I just recently found out that using unmanaged orders in a strategy, also allows you to move the stop and target orders like when you call ATM's from the strategy.

Bukkan wrote an entire order entry/management strategy that uses unmanaged orders and it worked well. I used the ATM so I wouldn't have to write so much code and it allows me to drag the stops and targets.


futuretrader View Post
Does the strategy get the ATM strategy to use directly from the ChartTrader setting?


@monpere, @ThatManFromTexas, thanks for all the info, it's very helpful.

If I understand your question correctly, yes the strategy calls an ATM strategy that I setup "TMFT11". It takes the quantities and the Account number from the ChartTrader settings.


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

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
The following 3 users say Thank You to ThatManFromTexas 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 03:40 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-13 in 0.16 seconds with 20 queries on phoenix via your IP 54.226.132.197