NexusFi: Find Your Edge


Home Menu

 





Can a floating window be coded with Ninjascript ?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one max-td with 7 posts (7 thanks)
    2. looks_two trendisyourfriend with 7 posts (1 thanks)
    3. looks_3 timmyb with 5 posts (8 thanks)
    4. looks_4 mainstream with 3 posts (0 thanks)
      Best Posters
    1. looks_one timmyb with 1.6 thanks per post
    2. looks_two max-td with 1 thanks per post
    3. looks_3 wh with 1 thanks per post
    4. looks_4 bukkan with 0.5 thanks per post
    1. trending_up 13,172 views
    2. thumb_up 20 thanks given
    3. group 6 followers
    1. forum 29 posts
    2. attach_file 4 attachments




 
Search this Thread

Can a floating window be coded with Ninjascript ?

  #21 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020

timmyb, you used Visual basic to code the window but it runs within Ninja? How can this be possible since Ninja does not understand VB ?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #22 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361


trendisyourfriend View Post
timmyb, you used Visual basic to code the window but it runs within Ninja? How can this be possible since Ninja does not understand VB ?


my VB is setup for C#

Visit my NexusFi Trade Journal Reply With Quote
  #23 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020



timmyb View Post
my VB is setup for C#

OK i understand, you code in VB but the output is converted into C#. To make it run anywhere do we need to install a special runtime on our computer ? or simply the NET framework is all we need ?

I wonder if we could not use this tool: https://www.networkautomation.com/automate/8/

Started this thread Reply With Quote
  #24 (permalink)
 
LukeGeniol's Avatar
 LukeGeniol 
Italy (IT) Italy
 
Experience: Advanced
Platform: ATAS, R|Trader, NT8
Broker: Rithmic
Trading: CL, Brent, GC, TF
Frequency: Daily
Duration: Minutes
Posts: 1,499 since Apr 2010
Thanks Given: 408
Thanks Received: 985


trendisyourfriend View Post
OK i understand, you code in VB but the output is converted into C#. To make it run anywhere do we need to install a special runtime on our computer ? or simply the NET framework is all we need ?

I think u don't need any thing else.


Quoting 
I wonder if we could not use this tool: IT Automation - AutoMate 8 - Network Automation

To do what? Automate your tasks? If so, yes!

Take your Pips, go out and Live.
Luke.
Reply With Quote
  #25 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


LukeGeniol View Post
To do what? Automate your tasks? If so, yes!

To create windows and pass orders to Ninja as they say it can replace Windows Scripting. Since we can create windows with WSH so i thought we could do the same with automate but more simply.

Started this thread Reply With Quote
  #26 (permalink)
 
LukeGeniol's Avatar
 LukeGeniol 
Italy (IT) Italy
 
Experience: Advanced
Platform: ATAS, R|Trader, NT8
Broker: Rithmic
Trading: CL, Brent, GC, TF
Frequency: Daily
Duration: Minutes
Posts: 1,499 since Apr 2010
Thanks Given: 408
Thanks Received: 985


trendisyourfriend View Post
To create windows and pass orders to Ninja as they say it can replace Windows Scripting. Since we can create windows with WSH so i thought we could do the same with automate but more simply.

Don't think you can do it nor with Automate and even nor with WSH.
But may be I'm wrong.

Take your Pips, go out and Live.
Luke.
Reply With Quote
  #27 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


LukeGeniol View Post
Don't think you can do it nor with Automate and even nor with WSH.
But may be I'm wrong.

Of course you are. When i was a system analyst we used it to build quick and cheap interfaces to help users automate different functions. About automate, i know nothing about it.

Started this thread Reply With Quote
Thanked by:
  #28 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512

if he use vb.net he runs in msil the same as c#.
so it is easy to convert to c#.

Causality is the relationship between an event (the cause) and a second event (the effect), where the second event is a consequence of the first.
Reply With Quote
  #29 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361

Ok I think I understand where i was misinforming.

I meant I use Microsoft Visual Studio. No visual basic itself

I dont convert anything I just copy and paste the code. I have to change a couple things but it was rather easy.

in microsoft visual studio I go file new windows form and build it from there. Look at the strategy code I posted and you will understand it better

Attached Thumbnails
Click image for larger version

Name:	12-20-2010 6-12-45 PM visual c#.png
Views:	302
Size:	65.0 KB
ID:	27161  
Visit my NexusFi Trade Journal Reply With Quote
  #30 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


i dont know if its helpful but i found some examples of button-styles + their coding,
maybe a good source for ideas + help :

Vista Style Button in C# - CodeProject

CRoundButton2 - A fancy graphical button - CodeProject

XP-Style Button - CodeProject


-

max-td
Reply With Quote




Last Updated on December 21, 2010


© 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