event handling and calling a method - NinjaTrader Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

event handling and calling a method
Started:April 22nd, 2010 (11:14 AM) by kaywai Views / Replies:1,235 / 2
Last Reply:April 25th, 2010 (01:21 PM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

event handling and calling a method

Old April 22nd, 2010, 11:14 AM   #1 (permalink)
Trading for Fun
Futures Experience: Intermediate
Platform: ninjatrader
Broker/Data: IB
Favorite Futures: ES, forex, oil
Posts: 131 since Nov 2009
Thanks: 11 given, 7 received

event handling and calling a method

is there any difference between the two?

Reply With Quote

Old April 22nd, 2010, 11:14 AM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old April 25th, 2010, 01:21 PM   #3 (permalink)
Just starting out...
Houston, TX
Futures Experience: Intermediate
Platform: Ninja, MetaTrader
Broker/Data: IB
Favorite Futures: EUR/USD 6E
Posts: 23 since Apr 2010
Thanks: 16 given, 4 received

I will try to answer this. They are alike in that each are blocks of code that are compiled together and share the same rules about variable scope, etc. You can call the method any time you choose, but the event handler is a "call back function" (I believe) and is called by the platform whenever it decides. Call backs also run in the thread of the platform and might(perhaps depending on the language) run async. There are different types of threading setups which I do not understand (Apartment, etc), but have not found it necessary to get my code to run the way I want. Method: Request a strean of live quotes. Call back: Every time there is a quote it (the platform) runs the call back. Perhaps a more experienced programmer can better clarify this. Ken.

Last edited by kenz987; April 25th, 2010 at 01:22 PM. Reason: typo
Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > event handling and calling a method

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Corey Rosenbloom: Tips, Tactics, and Real Trades: Trading Intraday Trend Reversals

Elite only

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gold - I'm calling the top cpi65 Commodities Futures Trading 65 February 19th, 2012 04:32 AM
Calling GomiCD into GomiLadder kashter NinjaTrader Programming 2 May 9th, 2011 06:35 PM
Need help with an event ghoti NinjaTrader Programming 1 March 14th, 2011 01:44 PM
Server side order handling nanobiotech Traders Hideout 17 December 11th, 2010 05:12 AM
STRAT LIMITORDER REJECTION HANDLING zeller4 NinjaTrader Programming 1 February 2nd, 2010 01:41 PM

All times are GMT -4. The time now is 03:47 PM.

Copyright © 2016 by futures.io. 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.
no new posts

Page generated 2016-10-20 in 0.08 seconds with 19 queries on phoenix via your IP