Thursday, September 09, 2010     | Register
TradersStudio Forums
Subject: Divergence

You are not authorized to post a reply.   
Author Messages
trollaby
Posts:12

03-23-2009 6:04 AM Alert 

I would like to code a positive/negative divergence. I mean between an indicator and price of any security. I tried but i have faced a lot of problem. How could i code a series of highter low or a second low tha is higher that the previous low ( viceversa in negative divergence) of Macd  for eaxmple and link this 2 or more than 2 higher low with  lower lows of the security. 

Thank for any help 

murray
Posts:519

03-23-2009 10:26 AM Alert 
BearishDivergence and Bullishdivergence function are written in script under general functions. They are just like the TradeStation ones.
trollaby
Posts:12

03-24-2009 7:21 AM Alert 
Could you explain me in the functions Divergences what Strength, Length are refferring to. And the output is not clear to me.
Could you explain also the output of SwingHighBar. I tried to see in the help but it's not explained.
Thank you
murray
Posts:519

03-25-2009 11:03 PM Alert 

Strenght is how many bar swing, and lenght is how far back you can look for that swing.  a 10 bars swing is 5 bars up and 5 bars down.

SwingHighBar, returns how many bars ago the swing high occured. The last argument is the occurence number, 1, last , 2 2 occurences ago ect.

 

 

You are not authorized to post a reply.



ActiveForums 3.6
TradersStudio® Copyright 2004-2010 All Rights Reserved   |  Privacy Statement  |  Terms Of Use