question on generating random identifier - NinjaTrader Programming | futures trading

Go Back

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

question on generating random identifier
Started:July 9th, 2009 (02:00 PM) by tortexal Views / Replies:1,093 / 0
Last Reply:July 9th, 2009 (02:00 PM) Attachments:0

Welcome to

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

question on generating random identifier

Old July 9th, 2009, 02:00 PM   #1 (permalink)
Futures Experience: None
Platform: Hit the Bid!
Posts: 44 since Jun 2009
Thanks: 1 given, 22 received

question on generating random identifier

how i pass a string to EnterLong()? I'm generating a random identifier for the entry as follows:

protected override void Initialize()
Random RandomClass = new Random();
int x = RandomClass.Next(100, 999);
String label = x.ToString();

protected override void OnBarUpdate()
EnterLong("label goes here");

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > question on generating random identifier

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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
Random Line Theory Big Mike Traders Hideout 354 November 14th, 2015 05:29 PM
Multiplicity-: Generating wealth as opposed to paying the rent with trading income. liquidcci Psychology and Money Management 16 August 12th, 2011 04:10 PM
Random Thoughts.... AynRandFan Traders Hideout 7 July 24th, 2011 05:52 AM
Cycle Identifier - alert question Todd NinjaTrader Programming 65 July 11th, 2011 02:29 PM
Error on generating indicator after upgrade to R6 dee50 NinjaTrader 4 June 10th, 2011 01:55 PM

All times are GMT -4. The time now is 11:11 AM.

Copyright © 2016 by 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-21 in 0.05 seconds with 19 queries on phoenix via your IP