Register Login
Forums    February 6, 2012
TradersStudio Forums
Divergence
Last Post 03-25-2009 11:03 PM by mur ang. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Sebastiano Zampa
New Member
New Member
Posts:12

--
03-23-2009 06:04 AM

    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 

    mur ang
    Advanced Member
    Advanced Member
    Posts:525

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

    --
    03-24-2009 07:21 AM
    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
    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    03-25-2009 11:03 PM

    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.


     TradersStudio, Inc. ® Copyright 2004-2012 All Rights Reserved   Terms Of Use  Privacy Statement