Tricky NinjaScript coding {questions} . . . (Page 2) - NinjaTrader Programming | futures trading

Go Back

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

Tricky NinjaScript coding {questions} . . .
Started:May 11th, 2011 (11:19 AM) by jmejedi Views / Replies:1,939 / 10
Last Reply:August 2nd, 2014 (09:09 PM) Attachments:2

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

Tricky NinjaScript coding {questions} . . .

Old August 2nd, 2014, 09:09 PM   #11 (permalink)
Elite Member
Houston, TX
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Optimus Futures
Favorite Futures: 6E, ES
TheWizard's Avatar
Posts: 1,666 since Jun 2009
Thanks: 506 given, 3,952 received

cory View Post
common sense says you can only enter after signal bar.

Perhaps I didn't explain fully. Obviously, I can only enter after the signal bar, but I want to enter at the LOW (for shorts) or HIGH (for longs) of the bar PRIOR to the signal bar.

Say the price is declining and the signal bar is sensed, and the low the bar PRIOR to the signal bar was 1350.50. I want to go short at 1350.50, even though the signal bar may now be lower than 1350.50 (I'm trying to get short on a slight retracement).

Conversely, if price is rising and the signal bar is is sensed, and the high of the bar PRIOR to the signal bar was at 1350.00, I want to go long at 1350.00, even though the signal bar may now be higher than 1350.00 (I'm trying to get long on a slight retracement).

See chart attached with notation. Hopefully the picture with notation will clarify what I'm attempting to do.

As always, I thank you for your comments and help.

After all, it's what you learn AFTER you know it all, that counts!
Attached Thumbnails
Tricky NinjaScript coding {questions} . . .-automated-example.jpg  
Reply With Quote
The following user says Thank You to TheWizard for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Tricky NinjaScript coding {questions} . . .

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
NinjaScript Coding crazyhorse2393 NinjaTrader Programming 19 August 3rd, 2014 08:11 PM
Webinar: Basic NinjaScript coding, May 25th @ 4:30PM Eastern, 22:30 Berlin/Paris sam028 The Elite Circle 33 August 11th, 2011 10:37 AM
Learning NinjaScript - Various questions Jura The Elite Circle 3 March 2nd, 2011 10:25 AM
Some Basic NinjaTrader Coding Questions -- IDataSeries Crow NinjaTrader Programming 6 December 7th, 2010 11:00 PM
Ninjascript How TO spinnybobo NinjaTrader Programming 2 October 29th, 2009 10:34 AM

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

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.06 seconds with 20 queries on phoenix via your IP