NexusFi: Find Your Edge


Home Menu

 





ChartTrader & Order Button size - width


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one monpere with 15 posts (28 thanks)
    2. looks_two ThatManFromTexas with 9 posts (18 thanks)
    3. looks_3 futuretrader with 8 posts (0 thanks)
    4. looks_4 lolu with 6 posts (0 thanks)
      Best Posters
    1. looks_one bukkan with 4.3 thanks per post
    2. looks_two ThatManFromTexas with 2 thanks per post
    3. looks_3 monpere with 1.9 thanks per post
    4. looks_4 TradingGuy with 1 thanks per post
    1. trending_up 24,344 views
    2. thumb_up 65 thanks given
    3. group 23 followers
    1. forum 66 posts
    2. attach_file 6 attachments




 
Search this Thread

ChartTrader & Order Button size - width

  #31 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


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";

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Increase in trading performance by 75%
The Elite Circle
REcommedations for programming help
Sierra Chart
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #32 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353


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
  #33 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


 
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)
 
lolu's Avatar
 lolu 
Lagos, Nigeria
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678


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

Visit my NexusFi Trade Journal Reply With Quote
  #35 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353


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
Thanked by:
  #36 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


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)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353


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
Thanked by:
  #38 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


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
Thanked by:
  #39 (permalink)
 futuretrader 
Como Italy
 
Experience: Intermediate
Platform: Ninjatrader, customized
Trading: ES
Posts: 525 since Feb 2010
Thanks Given: 471
Thanks Received: 643


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)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353



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.



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
Thanked by:




Last Updated on February 25, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts