NexusFi: Find Your Edge


Home Menu

 





Ultimate Oscillator Strategy Code


Discussion in EasyLanguage Programming

Updated
    1. trending_up 4,349 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 1 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
Prophet85
Gothenburg Sweden
 
Posts: 75 since Jul 2019
Thanks Given: 53
Thanks Received: 24

Hi

So I know that TS has the Ultimate Oscillator Strategy as a function. However I am trying to use this as a strategy as explained in e.g Investopedia (https://www.investopedia.com/terms/u/ultimateoscillator.asp) and would appreciate some help.

As stated in the link I would like to buy when all the following is true:

1. a bullish divergence must form. This is when the price makes a lower low but the indicator is at a higher low.
2. the first low in the divergence (the lower one) must have been below 30. This means the divergence started from oversold territory and is more likely to result in an upside price reversal.
3. the Ultimate oscillator must rise above the divergence high. The divergence high is the high point between the two lows of the divergence.

I am kind of at a loss on how to write this as a code. Any help would be appreciated.

Regards


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
CME Group CEO Calls CFTC-Approved Crypto Perps Dangerous …
Traders Hideout
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #2 (permalink)
 atrade 
Loa Angeles
 
Experience: Intermediate
Platform: OEC
Trading: ES
Posts: 12 since Jan 2012
Thanks Given: 39
Thanks Received: 8

See if a simple approach approach would work.


pseudo code:

//conditions to look for:


lowest (pr, len1)=lowest len(pr, len2)
//want them to be the same (=) because otherwise the first low would be lower

lowest (uo, len1) > lowest (uo, len2) and lowest (uo, len2) <30





Otherwise you might have to use code from zigzag and or count bars back to get those locations.


Reply With Quote
Thanked by:




Last Updated on November 1, 2021


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts