NexusFi: Find Your Edge


Home Menu

 





Calling on Advanced C# Ninja Coders -- to finish ClickTrade


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vantojo with 21 posts (2 thanks)
    2. looks_two decs0057 with 4 posts (3 thanks)
    3. looks_3 Mindset with 3 posts (1 thanks)
    4. looks_4 steve2222 with 2 posts (0 thanks)
    1. trending_up 12,118 views
    2. thumb_up 6 thanks given
    3. group 9 followers
    1. forum 37 posts
    2. attach_file 2 attachments




 
Search this Thread

Calling on Advanced C# Ninja Coders -- to finish ClickTrade

  #31 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

The indicator is now working and is in BETA and ready to download in the futures.io (formerly BMT) Elite Download section.

The indicator submits orders and cancels positions with methods that are not supported by NinjaTrader.

For this reason THE CODE IS EXPERIMENTAL AND THERE IS NO WARRANTY OF ANY KIND...USE AT YOUR OWN RISK

I consider the indicator as only a test template for experienced Ninja coders to modify for their own use.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
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
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #32 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

Sorry what is the indicator called?
I used your cs file but keep getting a string error on one of the custom events (spacebar I think)

Reply With Quote
  #33 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012


probably you are trading forex, and there is a comma in the quantity drop down?

you have to remove the comma before converting the text to integer (in the code)


Text.Replace (",", "")

I don't trade forex so didn't notice this when I wrote it...will update the download when I get a chance

Started this thread Reply With Quote
  #34 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012


Mindset View Post
Sorry what is the indicator called?
I used your cs file but keep getting a string error on one of the custom events (spacebar I think)

The CS file in this thread was just a working codeset given back to me by another coder while it was in development

Please do not consider that code even a Beta version.

Go to futures.io (formerly BMT) Elite Downloads to get the Beta version.

And, please read the disclaimer, and modify the code to your own purpose.

It is working really well for me.

Started this thread Reply With Quote
  #35 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

Vantojo

Replace

Quantity = Convert.ToInt32(ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"].
Controls["nudQuantity"].text);
in GetAccountATM with

Quantity = Convert.ToInt32(((NumericUpDown)ChartControl.Controls["pnlChartTrader"].
Controls["ctrChartTraderControl"].Controls["nudQuantity"]).Value);


Then you can trade forex quantities.

Reply With Quote
Thanked by:
  #36 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

looks like you know C# better than I do.... :-)

Mostly I adapt code from other sources to my need....I really don't know .net very well

Good luck with your Forex!

Started this thread Reply With Quote
  #37 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

Ditto - I got that line from ChartTraderButtons.
What I would really like to find is how to get the exit price of a position in an indicator. Seems to flumox everybody that one

Reply With Quote
  #38 (permalink)
 
spikebuck77's Avatar
 spikebuck77 
Britton, Michigan
 
Experience: Intermediate
Platform: Ninjatrader
Trading: CL and ES
Posts: 65 since May 2011
Thanks Given: 213
Thanks Received: 28

Having trouble accessing the current market position. The GetAtmStrategyMarketPosition() doesn't work. I'm guessing because the order is submitted OIF. Anyone know how to get the market position? I think it is done with PUF (Position Update File) but can't find instructions or an example of using it.

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on February 5, 2015


© 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