Current ADX value - help - EasyLanguage Programming | futures io social day trading
futures io futures trading


Current ADX value - help
Updated: Views / Replies:175 / 9
Created: by GustavMejlvang Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Current ADX value - help

  #1 (permalink)
Trading Apprentice
Copenhagen, Denmark
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: Fx
 
Posts: 15 since May 2017
Thanks: 6 given, 3 received

Current ADX value - help

Hi Futures.IO

I have trouble with calling and using the current ADX value.

I want to use it as a trend filter in my strategy code, so:


//

Var:

trendADX(0);

trendADX=ADX(14);

condition1=.....and trendADX>x(25 for example).



//

But whatever I set x to, it doesn't affect my strategy,. The exact same orders are placed, so I'm wondering what I am doing wrong? Do I need to make a function like, current ADX or?

Thank you in advance!

Reply With Quote
 
  #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.

 
  #3 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,404 since Apr 2013
Thanks: 220 given, 799 received
Forum Reputation: Legendary


GustavMejlvang,

I could only guess without seeing the full code, but the first thing I'd check is what the value of trendADX is on each bar.
If this doesn't qualify for an entry, but the entry is taken anyway, the problem is somewhere else within your code.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Trading Apprentice
Copenhagen, Denmark
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: Fx
 
Posts: 15 since May 2017
Thanks: 6 given, 3 received


ABCTG View Post
GustavMejlvang,

I could only guess without seeing the full code, but the first thing I'd check is what the value of trendADX is on each bar.
If this doesn't qualify for an entry, but the entry is taken anyway, the problem is somewhere else within your code.

Regards,

ABCTG

I have a strategy that produces orders and works. EURUSD, 15min.

I have added in the condition1: .......ADX(14)>20;

This does affect the netprofit slightly, but it still produces orders when ADX is below 20 which is very weird. If I then change the value to ADX>50, then it also affects the net profit slightly, but number of trades is almost the same and this does not make any sense at it is quite rare that ADX is above 50 for my signals....

My question is therefore, is my value for ADX "wrong"?

Thanks in advance.

Reply With Quote
 
  #5 (permalink)
Trading Apprentice
Copenhagen, Denmark
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: Fx
 
Posts: 15 since May 2017
Thanks: 6 given, 3 received


GustavMejlvang View Post
I have a strategy that produces orders and works. EURUSD, 15min.

I have added in the condition1: .......ADX(14)>20;

This does affect the netprofit slightly, but it still produces orders when ADX is below 20 which is very weird. If I then change the value to ADX>50, then it also affects the net profit slightly, but number of trades is almost the same and this does not make any sense at it is quite rare that ADX is above 50 for my signals....

My question is therefore, is my value for ADX "wrong"?

Thanks in advance.

Just tried to do: ADX(14)=5000000 and it still produces the exact same trades. It's very weird tbh

Reply With Quote
 
  #6 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,404 since Apr 2013
Thanks: 220 given, 799 received
Forum Reputation: Legendary

GustavMejlvang,

your code snippet appears to call the function correctly - under the condition that this is the original build in function of course.
I am afraid with your code snippet no one but you will be able to answer if "is my value for ADX "wrong"". You need to check the values on your end (either with prints or by making them available to an indicator using i_SetPlotValue for example).

However the problem is likely somewhere else in your code. But for anyone to be able to help you, you'd either have to post the full code or create a demo code that shows the same behavior.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #7 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,404 since Apr 2013
Thanks: 220 given, 799 received
Forum Reputation: Legendary

GustavMejlvang,

sounds even more like the ADX not being the issue here.

One thing I would suggest though is, not to call the functions directly within the conditions. Call it upfront, store the value in a variable and then use the variable in your checks. You can refer to the build in ADX indicator as an example.
Otherwise you risk that "Series functions can return incorrect results if called within conditional statements" (this quote is from the Tradestation wiki).

Regards,

ABCTG



GustavMejlvang View Post
Just tried to do: ADX(14)=5000000 and it still produces the exact same trades. It's very weird tbh


Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #8 (permalink)
Trading Apprentice
Copenhagen, Denmark
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: Fx
 
Posts: 15 since May 2017
Thanks: 6 given, 3 received


ABCTG View Post
GustavMejlvang,

sounds even more like the ADX not being the issue here.

One thing I would suggest though is, not to call the functions directly within the conditions. Call it upfront, store the value in a variable and then use the variable in your checks. You can refer to the build in ADX indicator as an example.
Otherwise you risk that "Series functions can return incorrect results if called within conditional statements" (this quote is from the Tradestation wiki).

Regards,

ABCTG

Thanks a lot I have got it to work now

Reply With Quote
The following user says Thank You to GustavMejlvang for this post:
 
  #9 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,404 since Apr 2013
Thanks: 220 given, 799 received
Forum Reputation: Legendary

GustavMejlvang,

what was the problem and solution?

Regards,

ABCTG

Reply With Quote
 
  #10 (permalink)
Trading Apprentice
Copenhagen, Denmark
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: Fx
 
Posts: 15 since May 2017
Thanks: 6 given, 3 received



ABCTG View Post
GustavMejlvang,

what was the problem and solution?

Regards,

ABCTG

I just added another condition which only contained the ADX parameter and then it worked.

Thanks for your help

Reply With Quote

Reply



futures io > > > > > Current ADX value - help

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

July Journal Challenge w/$1100 in prizes from TopstepTrader

July
 

An Afternoon with FIO member Softsoap

Elite only

Battlestations: Show us your trading desks and win $750 in prizes

August
 

Extended Ask Me Anything w/Brett Steenbarger

Elite only

Prototyping Python Strategies (part 3) w/Ran Aroussi

Elite only

Brannigan Barrett w/Axia Futures

Elite only

Introduction to Phillip Capital futures brokerage services

Aug TBD

How Monte Carlo Analysis Can Help Your Trading w/Kevin Davey

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is the ADX indicator useful for you? vanzolini Emini Index Futures Trading 28 January 8th, 2017 10:31 AM
ADX with EMA Lotech123 Traders Hideout 3 April 10th, 2016 01:13 AM
Jeffs ADX Jeff Castille The Elite Circle 37 December 27th, 2011 10:44 AM
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 10:46 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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 2017-07-24 in 0.12 seconds with 19 queries on phoenix via your IP 54.225.53.253