Incorporate ADX rule - EasyLanguage Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Incorporate ADX rule
Started:June 28th, 2013 (01:16 AM) by frugalmule Views / Replies:488 / 1
Last Reply:June 28th, 2013 (01:16 AM) 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

Incorporate ADX rule

Old June 28th, 2013, 01:16 AM   #1 (permalink)
Elite Member
Waco, TX, USA
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: Forex
frugalmule's Avatar
Posts: 5 since May 2013
Thanks: 0 given, 1 received

Incorporate ADX rule

Mike, thank you for the earlier communications. My Elite Membership has been paid and I would greatly appreciate any assistance with this. - 6-28-13 at 4:50 CST

I need to amend the strategy below as follows:

It should not allow any new trade or exit (long or short) to be triggered unless ADX is first above 20 before the trigger occurs.
It also should hold positions throughout the day but not hold any positions overnight.

Assistance is greatly appreciated.

{062713 TRP and TS Support Convert Aroon Oscillator to Strategy}

{ Reference: Tushar S. Chande, "A Time Price Oscillator", Technical Analysis of   
  Stocks & Commodities, V. 13:9 (369-374) }  
	int AroonLength( 25 ) ;  // Aroon length  
Started with the built-in Aroon Oscillator indicator.  Converted it to a strategy 
1) Remove all plot statements - these do not work in strategies 
2) Converting Alerts to entries or exits 
	double AroonOscValue( 0 ),  
	bool EntryCondition( false) ;  
//  Calc the Aroon Oscillator value using the built-in AroonOsc function 
AroonOscValue = AroonOsc( AroonLength ) ;  
//  Check that we are past the first bar of the chart to prevent spurious entries 
if CurrentBar > 1 then begin  
	//  Cross over zero triggers long entry or reversal from short to long 
	if AroonOscValue crosses over 0 then  
		Buy at next bar at market 
	//  Cross under zero triggers short entry or reversal from long to short 
	else if AroonOscValue crosses under 0 then  	 
		SellShort at next bar at market ; 
end ;

Last edited by frugalmule; June 28th, 2013 at 05:51 PM.
Reply With Quote

Old June 28th, 2013, 01:16 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.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Incorporate ADX rule

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
ADX-VMA KMB1 Open E Cry 1 January 14th, 2013 08:47 PM
Jeffs ADX Jeff Castille The Elite Circle 37 December 27th, 2011 10:44 AM
Point-O and ADX vegasfoster The Elite Circle 2 March 24th, 2010 01:49 PM
ADX benbrooke NinjaTrader Programming 2 November 26th, 2009 04:37 PM
what is adx sharky Traders Hideout 4 June 15th, 2009 04:29 PM

All times are GMT -4. The time now is 01:39 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-25 in 0.06 seconds with 19 queries on phoenix via your IP