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

  #21 (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
Is SetStopLoss(CalculationMode.Price, entryPrice +(2*TickSize) not a strategy code ?

Pls, could you give a typical example of a strategy call for BE ... the code(s) that call the strategy from within the ChartButtons indicator "to do something like SetStopLoss(CalculationMode.Price, entryPrice +(2*TickSize)".

What I want to do is code a BE action (just like the CLOSE action) into terratec's bTPA indicator.

Lolu

You cannot do advanced trade management with an indicator. The only order management method I know of that can be used inside and indicator is CreateOrder(). That is the method used in the bTPA indicator to open trades, but it uses a hot key to close the trades. If you want to do things like move stops, targets, partial exits, cancel orders, etc. those methods are only available in strategies.

I interface my indicator with my strategy using the windows clipboard. When I press the 'BE' button on my chart, the indicator puts the following command on the windows clipboard '<NTcmd> BreakEven </NTcmd>' using Clipboard.SetText(). My strategy reads the windows clipboard using Clipboard.GetText(), sees the 'BreakEven' command, and executes SetStopLoss(...). I have many other specialized button commands implemented such as 'BuyCloseOfBar', 'SetTarget+1RMultiple', 'SetStop-1', 'TrailBy2Bars', 'TrailDownBars', 'PauseStrategy', 'BreakEven', 'ExitHalf', etc. You can only implement these types of functionality with strategies, and your code will be supported by NinjaTrader.

Reply With Quote
The following 2 users say Thank You to monpere for this post:
 
  #22 (permalink)
Elite Member
Bethesda, Maryland
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: stocks
 
Posts: 5 since May 2011
Thanks: 36 given, 2 received

ChartButtons


monpere View Post
Check out the ChartButtons indicator in the download section as an alternative. I use it exclusively, and can use it with or without chart trader visible or enabled, and no need to alter NinjaTrader internal code.

Thanks monpere.

I couldn't locate the ChartButtons indicator in the download section? Were you referring to Ninja's forum, or the forum with Big Mike's? I looked at Big Mike's, but could not locate it under /Indicators, /Strategies, or /Misc?

You would posible provide the link... thanks.

fosch

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



fosch View Post
Thanks monpere.

I couldn't locate the ChartButtons indicator in the download section? Were you referring to Ninja's forum, or the forum with Big Mike's? I looked at Big Mike's, but could not locate it under /Indicators, /Strategies, or /Misc?

You would posible provide the link... thanks.

fosch

https://futures.io/download/vip_elite_circle/788-download.html?view

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

@monpere,

You mention having the ability to enable ChartTrader while running the strategy. Whenever I close a position with ChartTrader it disables whatever strategy has initiated the order. Do you have a way to avoid this?

Thanks.

Reply With Quote
 
  #25 (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
@monpere,

You mention having the ability to enable ChartTrader while running the strategy. Whenever I close a position with ChartTrader it disables whatever strategy has initiated the order. Do you have a way to avoid this?

Thanks.

That is true. Closing a position with a charttrader close button will terminate the strategy. I don't think you can avoid it. I generally close trades manually by moving the target order on the chart, in which case, the strategy will not terminate.

Reply With Quote
The following 2 users say Thank You to monpere for this post:
 
  #26 (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 for the response - that's what I've been doing too; I was just hoping you might have found a loophole....

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


futuretrader View Post
@monpere,

You mention having the ability to enable ChartTrader while running the strategy. Whenever I close a position with ChartTrader it disables whatever strategy has initiated the order. Do you have a way to avoid this?

Thanks.


monpere View Post
That is true. Closing a position with a charttrader close button will terminate the strategy. I don't think you can avoid it. I generally close trades manually by moving the target order on the chart, in which case, the strategy will not terminate.

@futuretrader

@monpere

I created an indicator that (1) Creates the Buttons on the Chart Trader (2) Calls a strategy that generates a buy or sell order (3) Calls an ATM strategy to handle the stops and targets

Pressing the Buy or Sell Buttons on the chart trader causes the indicator to pass that information to the strategy which issues the orders and invokes the ATM strategy to handle the stops and targets.

Once the orders are generated, the stops and targets can be moved without affecting the strategy.

The Close Button on the Chart Trader closes all orders but doesn't affect the strategy since it is invoked by an indicator running on the same chart as the Chart Trader.

Hope that helps.

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 2 users say Thank You to ThatManFromTexas for this post:
 
  #28 (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
@futuretrader

@monpere

I created an indicator that (1) Creates the Buttons on the Chart Trader (2) Calls a strategy that generates a buy or sell order (3) Calls an ATM strategy to handle the stops and targets

Pressing the Buy or Sell Buttons on the chart trader causes the indicator to pass that information to the strategy which issues the orders and invokes the ATM strategy to handle the stops and targets.

Once the orders are generated, the stops and targets can be moved without affecting the strategy.

The Close Button on the Chart Trader closes all orders but doesn't affect the strategy since it is invoked by an indicator running on the same chart as the Chart Trader.

Hope that helps.

Attachment 63433

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?

Reply With Quote
 
  #29 (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
@futuretrader

@monpere

I created an indicator that (1) Creates the Buttons on the Chart Trader (2) Calls a strategy that generates a buy or sell order (3) Calls an ATM strategy to handle the stops and targets

Pressing the Buy or Sell Buttons on the chart trader causes the indicator to pass that information to the strategy which issues the orders and invokes the ATM strategy to handle the stops and targets.

Once the orders are generated, the stops and targets can be moved without affecting the strategy.

The Close Button on the Chart Trader closes all orders but doesn't affect the strategy since it is invoked by an indicator running on the same chart as the Chart Trader.

Hope that helps.

Attachment 63433

@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

Reply With Quote
 
  #30 (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
@futuretrader

@monpere

I created an indicator that (1) Creates the Buttons on the Chart Trader (2) Calls a strategy that generates a buy or sell order (3) Calls an ATM strategy to handle the stops and targets

Pressing the Buy or Sell Buttons on the chart trader causes the indicator to pass that information to the strategy which issues the orders and invokes the ATM strategy to handle the stops and targets.

Once the orders are generated, the stops and targets can be moved without affecting the strategy.

The Close Button on the Chart Trader closes all orders but doesn't affect the strategy since it is invoked by an indicator running on the same chart as the Chart Trader.

Hope that helps.

@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.

Reply With Quote

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)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

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 11:12 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-16 in 0.15 seconds with 20 queries on phoenix via your IP 54.226.34.209