NexusFi: Find Your Edge


Home Menu

 





How to program chart trader? Is it possible?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ThatManFromTexas with 2 posts (3 thanks)
    2. looks_two jabeztrading with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 redratsal with 1 posts (1 thanks)
    1. trending_up 5,566 views
    2. thumb_up 7 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 4 attachments




 
Search this Thread

How to program chart trader? Is it possible?

  #1 (permalink)
 jabeztrading 
Brooklyn, NY
 
Experience: Beginner
Platform: Ninjatrader, Metatrader
Trading: EUR/USD
Posts: 24 since Feb 2010
Thanks Given: 12
Thanks Received: 13

On Ninjatrader forum I read that you can't modify Chart Trader yet I believe I see that Indicator Warehouse has a position size indicator, which looks to me, has a button and drop down box on, including their logo, on Chart Trader. Anyone has insight to coding Chart Trader?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Deepmoney LLM
Elite Quantitative GenAI/LLM
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090



jabeztrading View Post
On Ninjatrader forum I read that you can't modify Chart Trader yet I believe I see that Indicator Warehouse has a position size indicator, which looks to me, has a button and drop down box on, including their logo, on Chart Trader. Anyone has insight to coding Chart Trader?


You might want to check these threads and

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (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,348


jabeztrading View Post
On Ninjatrader forum I read that you can't modify Chart Trader yet I believe I see that Indicator Warehouse has a position size indicator, which looks to me, has a button and drop down box on, including their logo, on Chart Trader. Anyone has insight to coding Chart Trader?

I created a strategy (with the help of a lot elite members) that gave me my own push buttons and utilized the ATM for order handling. If that is what you mean.

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

My daddy always said, "Every day above ground is a good day!"
Attached Thumbnails
Click image for larger version

Name:	RangerATM.JPG
Views:	352
Size:	90.6 KB
ID:	36169  
Reply With Quote
Thanked by:
  #5 (permalink)
 jabeztrading 
Brooklyn, NY
 
Experience: Beginner
Platform: Ninjatrader, Metatrader
Trading: EUR/USD
Posts: 24 since Feb 2010
Thanks Given: 12
Thanks Received: 13

Thank you redratsal. I will check out those threads.

ThatManFromTexas, I am aware of the work that was done for you but I was more thinking of having buttons on chart trader itself instead of part of a strategy. I think its doable since It seems like that is what Indicatorwarehouse did.

Thank you guys for helping.

Attached Thumbnails
Click image for larger version

Name:	inwh.jpg
Views:	374
Size:	30.9 KB
ID:	36201  
Started this thread Reply With Quote
  #6 (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,348


jabeztrading View Post
Thank you redratsal. I will check out those threads.

ThatManFromTexas, I am aware of the work that was done for you but I was more thinking of having buttons on chart trader itself instead of part of a strategy. I think its doable since It seems like that is what Indicatorwarehouse did.

Thank you guys for helping.

This might give you some idea. Bukkan is the keeper of the knowledge as far as I'm concerned. He was a tremendous help to me. You may want to go by his website. www.volumedigger.com


bukkan View Post
one can easily resize the buttons etc. they are just buttons, and standard windows control isnt it.

 
Code
for (int i = 0;i <= ChartControl.Controls.Count - 1;i++)
            {
               if (ChartControl.Controls[i] == ChartControl.Controls["pnlChartTrader"])
                {
                    Panel p = (Panel)ChartControl.Controls["pnlChartTrader"];
                    
                    for (int j = 0;j <= p.Controls.Count - 1;j++)
                    {
                        if (p.Controls[j] == ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"])
                        {
                            Control ctrader = ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"];
                            
                            for (int k = 0;k <= ctrader.Controls.Count - 1;k++)
                            {
                                if (ctrader.Controls[k].Name == "btnBuyMarket")
                                {
                                    Button btnMkt = (Button)ctrader.Controls[k];
                                    btnMkt.Width = (int)(btnMkt.Width / 2);
                                }
                             }
                        }
                        
                    }
                }
                
            }
the above code resizes the Buy Market button to half

run the code once. so put it in OnStartUp()


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:
  #7 (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


jabeztrading View Post
Thank you redratsal. I will check out those threads.

ThatManFromTexas, I am aware of the work that was done for you but I was more thinking of having buttons on chart trader itself instead of part of a strategy. I think its doable since It seems like that is what Indicatorwarehouse did.

Thank you guys for helping.

You can put buttons on the chart itself. Here's the chart button indicator that allows you to do that.



You can see how some others have use this indicator here:



The chart below is what my trading charts have looked like for the past couple of years, using the buttons on the right to enter and manager trades..

Attached Thumbnails
Click image for larger version

Name:	chartbuttons.jpg
Views:	338
Size:	118.2 KB
ID:	36235  
Reply With Quote
Thanked by:
  #8 (permalink)
 terratec 
Zurich Switzerland
 
Experience: Intermediate
Platform: NinjaTrader
Broker: IB
Trading: ES, 6E, CL
Posts: 403 since Sep 2009
Thanks Given: 64
Thanks Received: 515

I try to add an OCO to a stop (or limit) order in the chart trader.
For testing I took the code that Bukkan posted in this thread and added the oco (OnBarUpdate) to a stop order.
(the code is not tested. Not for live use!)

In a strategy I can use OnExecution... for trade confirmation. With chart trader it does not work.

When placing a market order everything is fine. The entry and the oco are fired at the same time.

For stop and limit it's different.

I place a buy stop at 1300 protected by oco.
when the 1300 is touched oco is fired (before the buy is filled)
-> I am protected with the possibility to have no fill. ( and I can cancel the oco in that case)

Or I change it to oco is fired when 1300+1 tick is touched (after the buy is filled)
-> I have my fill with the risk not being protected.

In volatile markets like CL and 6E the 2nd way could be OK. For ES this could be too risky.

Are there other ways outside of strategy use?

Attached Files
Elite Membership required to download: ChartTrader.zip
Reply With Quote




Last Updated on July 15, 2011


© 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