NexusFi: Find Your Edge


Home Menu

 





Ultimate Oscillator Strategy Code


Discussion in EasyLanguage Programming

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




 
Search this Thread

Ultimate Oscillator Strategy Code

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Cheap historycal L1 data for stocks
Stocks and ETFs
About a successful futures trader who didnt know anythin …
Psychology and Money Management
 
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts