NexusFi: Find Your Edge


Home Menu

 





How to compare 2 different type of indicators?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,693 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

How to compare 2 different type of indicators?

  #1 (permalink)
cowbearcar
Hong Kong, China
 
Posts: 14 since Apr 2017
Thanks Given: 0
Thanks Received: 1

Hi all

I got many ideas from 2 different indicators together in the same subcharts

For example,
William 26 vs macd standard setting
Looking for William 26 cross over macd Signal line

This kicks most ZigZag Swing High/Low in eye vision.

Or two different macd setting such as standard 12 26 9 vs 30 50 10
Need to find out the cross over

Trix vs Stoch RSI etc.

Since those actual value are totally different, how to compare them?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Futures True Range Report
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623


cowbearcar,

if you compute both studies within one indicator or signal you can check for cross overs of the values or any other condition you want to check for.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #4 (permalink)
cowbearcar
Hong Kong, China
 
Posts: 14 since Apr 2017
Thanks Given: 0
Thanks Received: 1


ABCTG View Post
cowbearcar,

if you compute both studies within one indicator or signal you can check for cross overs of the values or any other condition you want to check for.

Regards,

ABCTG



Here is an example on SP500 day charts with different indicators
Such as William 26 vs macd
Stoch RSI vs ADX

As above show, Swing High is early catch then standard macd

Any suggestion to put both william and macd signal on indicator?
I wonder macd curve reshape in other way and lost the orginal time catching
Such as great bullish trend, the value flood always to 100 on using stochastic
Fail to wait stochastic(William 26) cross below stochastic(macd)

Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

cowbearcar,

you are posting in the Tradestation EasyLanguage Programming section of futures.io.


cowbearcar View Post
Any suggestion to put both william and macd signal on indicator?

Based on that you'd have to create a new indicator in the Tradestation Development Environment and copy and paste the respective code pieces into the new one.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #6 (permalink)
cowbearcar
Hong Kong, China
 
Posts: 14 since Apr 2017
Thanks Given: 0
Thanks Received: 1

 
Code
Input: FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 ), RefLen(200) ;
variables: var0( 0 ), var1( 0 ), var2( 0 ) ;
variables: var3( 0 ), var4( 0 ), var5( 0 ), var6( 0 ) ;
variables: var7( 0 ), var8( 0 ), var9( 0 ), var10( 0 ) ;


var0 = MACD( Close, FastLength, SlowLength ) ;
var1 = XAverage( var0, MACDLength ) ;

inputs: 
	PriceH( High ), PriceL( Low ), PriceC( Close ), 
	StochLength( 26 ), SmoothingLength1( 1 ), SmoothingLength2( 1 ),                                
	SmoothingType( 1 ), OverSold( 20 ), OverBought( 80 ) ; 

variables:
	var14( 0 ), var11( 0 ), var12( 0 ), var13( 0 ) ;

Value11 = Stochastic( PriceH, PriceL, PriceC, StochLength, SmoothingLength1, 
 SmoothingLength2, SmoothingType, var14, var11, var12, var13 ) ;

Plot3( var12, "%K");


Value1 = Stochastic( var0, var0, var0, RefLen, SmoothingLength1, 
 SmoothingLength2, SmoothingType, var3, var4, var5, var6 ) ;
Value2 = Stochastic( var1, var1, var1, RefLen, SmoothingLength1, 
 SmoothingLength2, SmoothingType, var7, var8, var9, var10 ) ;

Plot1( var4 , "MACD" ) ;
Plot2( var8 , "MACDAvg" ) ;
Here is the indicator showing macd transform into stochastic
whereas William line is Stochastic with all smooth setting using 1

Well , reshape the curve far from original view on long bullish/bearish trend on Multicharts
Thatīs why I ask for help after trying

Reply With Quote
  #7 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

cowbearcar,

the code doesn't simply plot the two indicators together, it appears to compute a Stochastic using the MACD as price input.
Based on your original statement

Quoting 
William 26 vs macd standard setting

why do you compute the stochastic on the MACD and not just plot the MACD directly?

Regards,

ABCTG


cowbearcar View Post
 
Code
Input: FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 ), RefLen(200) ;
variables: var0( 0 ), var1( 0 ), var2( 0 ) ;
variables: var3( 0 ), var4( 0 ), var5( 0 ), var6( 0 ) ;
variables: var7( 0 ), var8( 0 ), var9( 0 ), var10( 0 ) ;


var0 = MACD( Close, FastLength, SlowLength ) ;
var1 = XAverage( var0, MACDLength ) ;

inputs: 
	PriceH( High ), PriceL( Low ), PriceC( Close ), 
	StochLength( 26 ), SmoothingLength1( 1 ), SmoothingLength2( 1 ),                                
	SmoothingType( 1 ), OverSold( 20 ), OverBought( 80 ) ; 

variables:
	var14( 0 ), var11( 0 ), var12( 0 ), var13( 0 ) ;

Value11 = Stochastic( PriceH, PriceL, PriceC, StochLength, SmoothingLength1, 
 SmoothingLength2, SmoothingType, var14, var11, var12, var13 ) ;

Plot3( var12, "%K");


Value1 = Stochastic( var0, var0, var0, RefLen, SmoothingLength1, 
 SmoothingLength2, SmoothingType, var3, var4, var5, var6 ) ;
Value2 = Stochastic( var1, var1, var1, RefLen, SmoothingLength1, 
 SmoothingLength2, SmoothingType, var7, var8, var9, var10 ) ;

Plot1( var4 , "MACD" ) ;
Plot2( var8 , "MACDAvg" ) ;
Here is the indicator showing macd transform into stochastic
whereas William line is Stochastic with all smooth setting using 1

Well , reshape the curve far from original view on long bullish/bearish trend on Multicharts
Thatīs why I ask for help after trying


Follow me on Twitter Reply With Quote
  #8 (permalink)
cowbearcar
Hong Kong, China
 
Posts: 14 since Apr 2017
Thanks Given: 0
Thanks Received: 1

I need make Strategy to buy and sellshort
Show indicator is just for visual inspection

Reply With Quote




Last Updated on April 29, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts