Breadth Risk On & Off

Optuma Forums Optuma Scripting Breadth Risk On & Off

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #66601
    Deepak
    • Topics: 69
    • Replies: 59
    • Posts: 128

    Hii

    I am trying to code both breadth conditions for risk on and risk off as per below article but i think my code is not correct. Can you please help.

    https://www.linkedin.com/pulse/identifying-risk-off-signals-market-breadth-david-pieper
    Regards,
    Deepak

    #66612
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    Are you applying the script to the SPX directly? If not, V3 needs to use a GETDATA() for the SPX index as well. I’d also use the WithinRange() function to work out if the close is within the zone it needs to be. Here it is in isolation…

    If adjusting the script to use the above does not fix the issue you are seeing please provide more information on what the problem is.

    #66647
    Deepak
    • Topics: 69
    • Replies: 59
    • Posts: 128

    Sir

    I think my code for below condition is not correct. Yes i am directly applying to nifty rather than spx.

    Condition 3: If Condition 1 & 2, start a days since true count#
    Condition 4: If days since true count <= ten days and the percentage of S&P 500 members crosses below 50%, signal risk-off
    Condition 5: If percentage of members crosses above 66%, reset condition = true

    Regards,
    Deepak

    #66683
    Deepak
    • Topics: 69
    • Replies: 59
    • Posts: 128

    Hii Sir

    Can you find error if possible.

    Regards,
    Deepak

    #66706
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    You’ll need to provide more information, I am not sure what isn’t working based on what you’ve posted so far, and the source you have is for SPX not NIFTY, meaning there would be custom bread codes being used as well?  Include all the scripts you’re using to build any custom breadth codes, and a screen shot of where your final script is showing an incorrect result.

    #66707
    Deepak
    • Topics: 69
    • Replies: 59
    • Posts: 128

    Hii Sir,

    When i applied below formula to spx it didnot match with number of signals as said in the article. Please see attached pic. Let me pose my question differently how u would have coded it for spx.

    #66716
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    I would code the 5 conditions (for the first set of rules) this way:

    2 users thanked author for this post.
    #66727
    Thomas
    • Topics: 110
    • Replies: 139
    • Posts: 249

    Thank you Matthew,

    I was also very interested in this topic/script.

    Best wishes,
    Thomas

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest