NexusFi: Find Your Edge


Home Menu

 





How to do sto of a sto with OEC EasyLanguage or c# ?


Discussion in Traders Hideout

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




 
Search this Thread
  #1 (permalink)
thailerdurden
san antonio, tex
 
Posts: 79 since Nov 2014
Thanks Given: 17
Thanks Received: 33

stochastic of a stochastic or (currentSTOchastic- 10STOlow)/(10STOhigh-10STOlow) ;10STOlow= lowest stochastic of the last 10 bars.

And the Max and Min functions will only compare 2 values.
Easylanguage stochastic doesn't work
And Low[10] gives the low 10 bars ago only for price. Not the lowest of last 10 bars.

And Range function doesn't work at all

It worked before I had to wipe clean the hard drive.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
Prediction Markets & Event Contracts
SEC and CFTC Unlock Customer Cross-Margining for Treasur …
Treasury Notes and Bonds
New Section 301 Probes Target 16 Trading Partners -- Tra …
Traders Hideout
MyForexFunds Begins Returning Frozen Funds After CFTC Ca …
Funded Trading Evaluation Firms
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
thailerdurden
san antonio, tex
 
Posts: 79 since Nov 2014
Thanks Given: 17
Thanks Received: 33


C# and enter in the stochastic10price by setting it equal to InputData

Result.Value = (InputData[0]-System.Math.Min(InputData[1],System.Math.Min(InputData[2],System.Math.Min(InputData[3],System.Math.Min(InputData[4],System.Math.Min(InputData[5],System.Math.Min(InputData[6],System.Math.Min(InputData[7],System.Math.Min(InputData[8],System.Math.Min(InputData[9],InputData[9]))))))))))/(System.Math.Max(InputData[1],System.Math.Max(InputData[2],System.Math.Max(InputData[3],System.Math.Max(InputData[4],System.Math.Max(InputData[5],System.Math.Max(InputData[6],System.Math.Max(InputData[7],System.Math.Max(InputData[8],System.Math.Max(InputData[9],InputData[9])))))))))-System.Math.Min(InputData[1],System.Math.Min(InputData[2],System.Math.Min(InputData[3],System.Math.Min(InputData[4],System.Math.Min(InputData[5],System.Math.Min(InputData[6],System.Math.Min(InputData[7],System.Math.Min(InputData[8],System.Math.Min(InputData[9],InputData[9]))))))))));
}

OK, when everyone is through laughing at my cludgy programming, could someone come up with something elegant?


Reply With Quote




Last Updated on January 21, 2016


© 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