| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #25 | ||
![]() | Re: Object-Oriented Programming OOP Quote:
But an object is an instance of the Type - like a house. Maybe another analogy will help here ... tsdata.trading.Order == 'Human' MyOrder == 'Mark' So MyOrder is an instance of Type tsdata.trading.Order just as 'Mark' is an instance of Type 'Human' So therefore you can call 'MyOrder.Cancel' just like you can call 'Mark.Walk' But 'Human.Walk' doesn't make sense because 'Human' is just a definition. 'Mark' is the instance of that definition. Thats why you can't call 'tsdata.trading.Order.Can cel' MMS
__________________ Traders Laboratory is 100% Free due to our generous ad sponsors. Be sure to support them - they support Traders Laboratory! Featured Brokers include: Alpari | Mirus Futures Featured Services: NinjaTrader | Kinetic | INO Trading Course | ||
| |
|
| The Following User Says Thank You to MadMarketScientist For This Useful Post: | ||
Tradewinds (10-31-2011) | ||
| | #26 | ||
![]() | Re: Object-Oriented Programming OOP Quote:
tsdata.trading.Order.Canc el would need to cancel every single order. There could be OrderOne, OrderTwo, OrderFutures, OrderStocks, etc. There might be times when you might want to cancel all orders, but you would want a specific command for that. It's important to be able to control one specific instance of something, so there needs to be a way to label and refer to that specific instance.
__________________ Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens. | ||
| |
|
| | #27 | ||
![]() | Re: Object-Oriented Programming OOP Quote:
regards, MMS
__________________ Traders Laboratory is 100% Free due to our generous ad sponsors. Be sure to support them - they support Traders Laboratory! Featured Brokers include: Alpari | Mirus Futures Featured Services: NinjaTrader | Kinetic | INO Trading Course | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming: Where to Start? | Soultrader | Coding Forum | 40 | 02-22-2012 10:13 AM |
| EasyLanguage Going Object Oriented ! | Tams | Tools of the Trade | 24 | 07-03-2010 09:49 AM |
| Text Object | PeterBrazel | Coding Forum | 0 | 01-28-2010 09:51 PM |
| Truncate EL Text Object | PeterBrazel | Coding Forum | 3 | 08-01-2009 10:38 AM |
| Programming Your System | brownsfan019 | Tools of the Trade | 17 | 04-22-2008 09:49 AM |