Showing DMminus Extreme

Optuma Forums Optuma Scripting Showing DMminus Extreme

This topic contains 1 reply, has 1 voice, and was last updated by  Fabien 2 weeks, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48855

    Fabien
    • Topics: 1
    • Replies: 1
    • Posts: 2

    I’m trying to show, either on the price chart as an arrow (Show Bar) or a separate layer (show view), whenever the DM minus hits an extreme low value over the last X periods.  I started with the following script for a Show Bar, which didn’t work:
    v1 = LOWESTLOW(ADX(DEFAULT=DMMinus), RANGE=All Time);
    IF(V1 <= ADX(DEFAULT=DMMinus))

    I tried a number of variations of the above the the look back period (instead of All Time) but none worked.  I’ve also tried to use a regression band on the DM minus, then tried to apply a similar script as above but again was unsuccessful. 

    Anyone have any ideas on how I can accomplish my task?

    Attachments:
    #48863

    Fabien
    • Topics: 1
    • Replies: 1
    • Posts: 2

    Disregard…figured it out

    Of course – if I was to simply use the correct math, it would work…
    v1 = LOWESTLOW(ADX(DEFAULT=DMMinus), RANGE=All Time); 
    IF(ADX(DEFAULT=DMMinus) <= v1)

    All well.  

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close