NexusFi: Find Your Edge


Home Menu

 





ClickTrader conversion to NT8 -- Needs expert C#


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vantojo with 3 posts (0 thanks)
    2. looks_two emun with 2 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 sam028 with 1 posts (2 thanks)
    1. trending_up 1,876 views
    2. thumb_up 3 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 1 attachments




 
Search this Thread

ClickTrader conversion to NT8 -- Needs expert C#

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

Hello,

I realize there is a thread dedicated to NT7--NT8 conversions...however this Chart "indicator" does not plot or draw anything.

Instead it places orders either through a direct call to the OIF interface (does not write an OIF file), or it presses buttons on the ChartTrader panel for immediate orders.

For orders placed at the cursor, it calculates the price at the pointer.

It took me a long time to get this working, mostly with the help of Futures IO gurus, and some code from the forums.

Converting this to NT8 is beyond my skill level. Yet, it might be simple for a more advanced C#/Ninja person.

Any takers?

Scalpers will really appreciate this tool. Once working, it can be posted to the Elite Download area.

Thanks

Attached Files
Elite Membership required to download: ZZClickTrader.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
76 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629



vantojo View Post
Hello,

I realize there is a thread dedicated to NT7--NT8 conversions...however this Chart "indicator" does not plot or draw anything.

Instead it places orders either through a direct call to the OIF interface (does not write an OIF file), or it presses buttons on the ChartTrader panel for immediate orders.

For orders placed at the cursor, it calculates the price at the pointer.

It took me a long time to get this working, mostly with the help of Futures IO gurus, and some code from the forums.

Converting this to NT8 is beyond my skill level. Yet, it might be simple for a more advanced C#/Ninja person.

Any takers?

Scalpers will really appreciate this tool. Once working, it can be posted to the Elite Download area.

Thanks

@vantojo: it's more tricky, I think you know it now.
The idea is to use OnRender, you get the Y and then know the prices you pointed. Something like:
 
Code
                            
double    wpfY chartControl.MouseDownPoint.Y;

double    valueByYWpf chartScale.GetValueByYWpf(wpfY);
valueByYWpf Instrument.MasterInstrument.RoundToTickSize(valueByYWpf); 
Then you can use SharpDX to avoid the this.Dispatcher.InvokeAsync(()... stuff. There are examples of OnRender and so on in the documentation.
I quickly tried today with a <control><right-mouse click> but the object drawn was disappearing quickly (after an OnRender refresh I suppose) so I must be doing something wrong...

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

getting the price at Y is a good step forward

will test it next week

thank you!

Started this thread Reply With Quote
  #5 (permalink)
 emun 
prague, czech republic
 
Experience: Advanced
Platform: NinjaTrader
Trading: NQ
Posts: 165 since May 2012
Thanks Given: 49
Thanks Received: 74


vantojo View Post
getting the price at Y is a good step forward

will test it next week

thank you!

Hello,

is there any progress in this, please?

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

yes, it was finished and posted quite some time ago in the Ninja 7 indicators on this forum...but not ported to NT 8.... please search the indicator archives if you want that version...good luck

Started this thread Reply With Quote
  #7 (permalink)
 emun 
prague, czech republic
 
Experience: Advanced
Platform: NinjaTrader
Trading: NQ
Posts: 165 since May 2012
Thanks Given: 49
Thanks Received: 74


vantojo View Post
yes, it was finished and posted quite some time ago in the Ninja 7 indicators on this forum...but not ported to NT 8.... please search the indicator archives if you want that version...good luck

Thank you vantojo for your answer. But I was asking in this thread in hope that it exists for NT8...

Reply With Quote
Thanked by:




Last Updated on October 10, 2019


© 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