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


Current ADX value - help
Updated: Views / Replies:130 / 9
Created: by GustavMejlvang 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

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, 2 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,329 since Apr 2013
Thanks: 212 given, 755 received


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, 2 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, 2 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,329 since Apr 2013
Thanks: 212 given, 755 received

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,329 since Apr 2013
Thanks: 212 given, 755 received

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, 2 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,329 since Apr 2013
Thanks: 212 given, 755 received

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, 2 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)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

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:12 AM.

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-05-27 in 0.11 seconds with 19 queries on phoenix via your IP 54.145.118.24