Highest() and Lowest() Returning Same Values - futures io
futures io



Highest() and Lowest() Returning Same Values


Discussion in Sierra Chart

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Highest() and Lowest() Returning Same Values

(login for full post details)
  #1 (permalink)
Nube
Minneapolis Minnesota
 
 
Posts: 24 since Jul 2019
Thanks: 0 given, 12 received

Getting the same values from the following. I'm sure the problem is with my knowledge - I'm a total n00b with Sierra.

 
Code
	SCFloatArrayRef ll = sc.Lowest(sc.BaseData[SC_LOW], sc.Subgraph[0], 20);
	SCFloatArrayRef hh = sc.Highest(sc.BaseData[SC_HIGH], sc.Subgraph[0], 20);

I was trying to make a stochastic as something simple to learn with but couldn't pull it off.

The Highest() and Lowest() looked like obvious choices to me. I have done a fair amount of scripting in Think Or Swim and use their version of those on the regular but am failing miserably here. Sierra also has a stock highest high / lowest low study which I believe could also be used but haven't figured out how to reference other studies / call functions from other studies.

I've tried searching the Sierra site and the youtube but haven't found what I need.

Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(602 thanks from 60 posts)
looks_twoSalao's Journalby Salao
(147 thanks from 26 posts)
looks_3Learning to Profit - A journey in algorithms and optionsby Syntax
(112 thanks from 26 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(94 thanks from 30 posts)
looks_5Maybe a little bit different journalby Malykubo
(46 thanks from 29 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
I finally blew up an account
494 thanks
Spoo-nalysis ES e-mini futures S&P 500
63 thanks
The Crude Dude Oil Trading System
62 thanks
The tiyfTradePlanFactory indicator
21 thanks
Building a Crypto Mining Rig
18 thanks
 
(login for full post details)
  #3 (permalink)
Tangy
Vancouver, Canada
 
 
Posts: 3 since Dec 2018
Thanks: 17 given, 1 received



Nube View Post

 
Code
SCFloatArrayRef ll = sc.Lowest(sc.BaseData[SC_LOW], sc.Subgraph[0], 20);

SCFloatArrayRef hh = sc.Highest(sc.BaseData[SC_HIGH], sc.Subgraph[0], 20);


Hi! You're storing the result in the same subgraph. Try:

 
Code
SCFloatArrayRef ll = sc.Lowest(sc.BaseData[SC_LOW], sc.Subgraph[0], 20);

SCFloatArrayRef hh = sc.Highest(sc.BaseData[SC_HIGH], sc.Subgraph[1], 20);

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Nube
Minneapolis Minnesota
 
 
Posts: 24 since Jul 2019
Thanks: 0 given, 12 received


Tangy View Post
Hi! You're storing the result in the same subgraph. Try:

 
Code
SCFloatArrayRef ll = sc.Lowest(sc.BaseData[SC_LOW], sc.Subgraph[0], 20);

SCFloatArrayRef hh = sc.Highest(sc.BaseData[SC_HIGH], sc.Subgraph[1], 20);


Thank you! I clearly don't know what a Subgraph is yet.Got some homework to do.

Reply With Quote


futures io Trading Community Platforms and Indicators Sierra Chart > Highest() and Lowest() Returning Same Values


Last Updated on July 7, 2019


Upcoming Webinars and Events

NinjaTrader Indicator Challenge!

Ongoing

Journal Challenge w/$1,800 in prizes!

May 7

The Cold Hard Truth: Maybe I Am Not Good Enough w/Chris Gray @ Earn2Trade

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts