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,327 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
55 thanks
NexusFi site changelog and issues/problem reporting
48 thanks
What percentage per day is possible? [Poll]
31 thanks
GFIs1 1 DAX trade per day journal
29 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


© 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