MACD Percentile - EasyLanguage Programming | futures io social day trading
futures io futures trading


MACD Percentile
Updated: Views / Replies:672 / 6
Created: by ilu007 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
 

MACD Percentile

  #1 (permalink)
Trading Apprentice
New York + US
 
Futures Experience: Intermediate
Platform: MultiCharts
Favorite Futures: Indian Stocks
 
Posts: 17 since Aug 2015
Thanks: 5 given, 0 received

MACD Percentile

Dear Coders,

I'm looking to use Percentile and Percent rank indicators on MACD ..

Please refer to the print screen below

Screenshot by Lightshot

I know Percentile and Percent Rank both are in built function in EL but I'm not able to figure out to use it effectively.

Can anyone help me with this?

Appreciate your soonest response

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,529 since Apr 2013
Thanks: 230 given, 854 received
Forum Reputation: Legendary


ilu007,

the screenshot is to small to see anything meaningful. What exactly seems to be the problem you are running into?
You could post the code that is giving you issues, so we can see what might be wrong with it.

Regards,

ABCTG

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
New York + US
 
Futures Experience: Intermediate
Platform: MultiCharts
Favorite Futures: Indian Stocks
 
Posts: 17 since Aug 2015
Thanks: 5 given, 0 received

MACD Percentile

Dear ABCTG,

Thank you for your reply..

I'm finding difficulty in coding the percentile rank function in EL...

What I would like to have is :

I would like to have a LookBack Period of the Highs and Lows and plotting lines at 90% of those levels and color coding the Histogram when it exceeded the 90 Percentile of the Highs or Lows of the LookBack period which I call the Threshold Lines. If that condition is TRUE for MACD I found the optimal entry was when the Histogram crossed the 50% level of the ZERO line and the Threshold lines, So I created a rule that plots a Visual Cross. Therefore we have to filterout the signals by waiting for the Histogram to Exceed the 90th Percentile of the LookBack period, then waiting for a confirmation of the reversal by waiting for the Histogram to cross the Mid-Threshold line.

There are two lower indicators.. May this screenshot will be visible for you

Screenshot by Lightshot

I can have those indicators coded in Trade Navigator as well which is

MACD Highest High Percentile
Highest (MACD (Close , Fast Period , Slow Period , False) , LookBack) * (Percentile / 100)

MACD Lowest Low Percentile
Lowest (MACD (Close , Fast Period , Slow Period , False) , LookBack) * ((100 - Percentile) / 100)

MACD Percent Rank
Percentile Rank (MACD (Close , Fast Period , Slow Period , False) , LB_Prd , True , False)

MACD PercentRank_HT
Percentile Rank (MACD (Close , Fast Period , Slow Period , False) , LB_Prd , True , False) > HT Pct

MACD percent Rank_LT
Percentile Rank (MACD (Close , Fast Period , Slow Period , False) , LB_Prd , True , False) < LT Pct

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

Hi ilu007,

why do you need the percentile rank function at all?
Assuming "Percentile" is an input, you already have the thresholds lines computed with this
 
Code
Highest (MACD (Close , Fast Period , Slow Period , False) , LookBack) * (Percentile / 100) 

Lowest (MACD (Close , Fast Period , Slow Period , False) , LookBack) * ((100 - Percentile) / 100)
Then you can just check for your cross over conditions and you should be good to go.

Regards,

ABCTG



ilu007 View Post
Dear ABCTG,

Thank you for your reply..

I'm finding difficulty in coding the percentile rank function in EL...

What I would like to have is :

I would like to have a LookBack Period of the Highs and Lows and plotting lines at 90% of those levels and color coding the Histogram when it exceeded the 90 Percentile of the Highs or Lows of the LookBack period which I call the Threshold Lines. If that condition is TRUE for MACD I found the optimal entry was when the Histogram crossed the 50% level of the ZERO line and the Threshold lines, So I created a rule that plots a Visual Cross. Therefore we have to filterout the signals by waiting for the Histogram to Exceed the 90th Percentile of the LookBack period, then waiting for a confirmation of the reversal by waiting for the Histogram to cross the Mid-Threshold line.

There are two lower indicators.. May this screenshot will be visible for you

Screenshot by Lightshot

I can have those indicators coded in Trade Navigator as well which is

MACD Highest High Percentile
Highest (MACD (Close , Fast Period , Slow Period , False) , LookBack) * (Percentile / 100)

MACD Lowest Low Percentile
Lowest (MACD (Close , Fast Period , Slow Period , False) , LookBack) * ((100 - Percentile) / 100)

MACD Percent Rank
Percentile Rank (MACD (Close , Fast Period , Slow Period , False) , LB_Prd , True , False)

MACD PercentRank_HT
Percentile Rank (MACD (Close , Fast Period , Slow Period , False) , LB_Prd , True , False) > HT Pct

MACD percent Rank_LT
Percentile Rank (MACD (Close , Fast Period , Slow Period , False) , LB_Prd , True , False) < LT Pct


Reply With Quote
 
  #6 (permalink)
Trading Apprentice
New York + US
 
Futures Experience: Intermediate
Platform: MultiCharts
Favorite Futures: Indian Stocks
 
Posts: 17 since Aug 2015
Thanks: 5 given, 0 received

MACD Percentile

Dear ABCTG,

Thank you for your input...

I have coded an indicator based upon your code but it is giving me some kind of error...

Here is the code

inputs:
FastLength( 12 ),
SlowLength( 26 ),
MACDLength( 9 ) ,
LookBack(100);


variables: var0( 0 ),
var1( 0 ),
var2( 0 ),
HighPrct(0),
LowPrct(0);

var0 = MACD( Close, FastLength, SlowLength ) ;
var1 = XAverage( var0, MACDLength ) ;
var2 = var0 - var1 ;
HighPrct = Highest (MACD (Close , FastLength , SlowLength, False) , LookBack) * (Percentile / 100);
LowPrct = Lowest (MACD (Close, FastLength, SlowLength, False), LookBack) * ((100 - Percentile / 100));


Plot1( var0, "MACD" ) ;
Plot2( var1, "MACDAvg" ) ;
Plot3( var2, "MACDDiff" ) ;
Plot4( 0, "ZeroLine" ) ;
Plot5(HighPrct, "LoPrct");
Plot6(LowPrct, "HiPrct");




Will it be possible to correct this....

Reply With Quote
 
  #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,529 since Apr 2013
Thanks: 230 given, 854 received
Forum Reputation: Legendary

ilu007,

most likely it will be, but without an error description it's hard to tell you what to correct.
My guess is that you need to get rid of the boolean input for the MACD function, as it only needs three.

Instead of calling the same function three times, you could as well just use the var0 as input for the Highest/Lowest function directly.

Regards,

ABCTG


ilu007 View Post
Dear ABCTG,

Thank you for your input...

I have coded an indicator based upon your code but it is giving me some kind of error...

Here is the code

inputs:
FastLength( 12 ),
SlowLength( 26 ),
MACDLength( 9 ) ,
LookBack(100);


variables: var0( 0 ),
var1( 0 ),
var2( 0 ),
HighPrct(0),
LowPrct(0);

var0 = MACD( Close, FastLength, SlowLength ) ;
var1 = XAverage( var0, MACDLength ) ;
var2 = var0 - var1 ;
HighPrct = Highest (MACD (Close , FastLength , SlowLength, False) , LookBack) * (Percentile / 100);
LowPrct = Lowest (MACD (Close, FastLength, SlowLength, False), LookBack) * ((100 - Percentile / 100));


Plot1( var0, "MACD" ) ;
Plot2( var1, "MACDAvg" ) ;
Plot3( var2, "MACDDiff" ) ;
Plot4( 0, "ZeroLine" ) ;
Plot5(HighPrct, "LoPrct");
Plot6(LowPrct, "HiPrct");




Will it be possible to correct this....


Reply With Quote

Reply



futures io > > > > > MACD Percentile

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
MACD butch1130 NinjaTrader 0 September 4th, 2015 05:05 PM
IV Rank OR IV percentile ? hobs ThinkOrSwim 0 March 12th, 2015 06:56 PM
Thinkorswim custom script for Stock/ETF / volatility percent percentile range peroulias ThinkOrSwim 11 January 19th, 2015 12:20 PM
How to Reference MACD-1 and MACD-2 in the Same Chart a2trader EasyLanguage Programming 3 July 21st, 2013 06:11 PM
Looking for a simple MACD strategy. MACD Xover LONG, go LONG roshareid NinjaTrader Programming 2 April 11th, 2010 09:05 PM


All times are GMT -4. The time now is 04:18 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-12-14 in 0.13 seconds with 19 queries on phoenix via your IP 54.91.38.173