Working on indicator of absolute strength to show direction rather than crossing

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #138621 quote
    Patrick K TemplarPatrick K Templar
    Participant
    Average

    Working on indicator of absolute strength to show direction rather than crossing over and I’m trying to change into a basic over the zero line histogram it’s not displaying for some reason hope there’s a fix thank you

    // Conditions to long
    indicator1, indicator2, ignored, ignored = CALL "PRC_Absolute Strength"[1, 10, 1, 2](close)
    
    
    AASI = indicator1 - indicator2
    
    
    indicator3 = AASI[4]
    c1 = (indicator3 > indicator3)
    
    // Conditions to short
    
    indicator3 =  AASI[4]
    c2 = (indicator3 < indicator3)
    
    
    
    
    // Death Cross detection
    if c1 then
    i=0.5
    endif
    
    if c2 then
    i=-0.5
    
    endif
    return i as "AASIHL"
    #138624 quote
    Patrick K TemplarPatrick K Templar
    Participant
    Average

    SORRY  got t to work some what   but it not line up right

    #138627 quote
    Patrick K TemplarPatrick K Templar
    Participant
    Average

    Yeah sorry I got it to display play but it’s not lining up with the indicator above so when the indicators going up and is blue i’d like to histogram to be above 0 and when the line is going down the histogram to be below zero I have inserted a picture down below  thank you

    // Conditions to long
    indicator1, indicator2, ignored, ignored = CALL "PRC_Absolute Strength"[1, 10, 1, 2](close)
    
    
    AASI = indicator1 - indicator2
    
    
    indicator3 = AASI[4]
    c1 = (indicator3 > indicator3[1])
    
    // Conditions to short
    
    indicator3 =  AASI[4]
    c2 = (indicator3 < indicator3[1])
    
    
    
    
    // Death Cross detection
    if c1 then
    i=0.5
    endif
    
    if c2 then
    i=-0.5
    
    endif
    return i as "AASIHL"
    

     

    elow and I will link the code as well thank you very much guys

    aasihl.png aasihl.png
    #138633 quote
    Patrick K TemplarPatrick K Templar
    Participant
    Average

    VERY SORRY I GOT IT WORK       could you delete  this whole topic thank you

    #138641 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Let’s keep it. It could of help for other interested.

    They can be intrested for two reasons:

    • learn that something cannot be different from itself
    • learn that with passion, determination, work and reasoning you can achieve good results

    If you have a chance to visit GraHal‘s profile read his motto.

    Thank you for sharing 🙂

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Working on indicator of absolute strength to show direction rather than crossing


ProBuilder: Indicators & Custom Tools

New Reply
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/07/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...