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



Highest() and Lowest() Returning Same Values


Discussion in Sierra Chart

Updated by Nube
    1. trending_up 391 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 3 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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)
Minneapolis Minnesota
 
 
Posts: 23 since Jul 2019
Thanks: 0 given, 11 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

Can you help answer these questions
from other members on futures io?
QDEL
Stocks and ETFs
Degiro Negative Balance Advice
Traders Hideout
Macros for flatten and reverse
TradeStation
I have segregated my investment and trading
Psychology and Money Management
Trade Summary Error
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on futures io
VWAP for stock index futures trading?
37 thanks
Coronavirus COVID-19
19 thanks
Battlestations: Show us your trading desks!
13 thanks
VWAP oscillator for NT8
10 thanks
Opinion on iron condor strategy
8 thanks
 
(login for full post details)
  #3 (permalink)
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)
Minneapolis Minnesota
 
 
Posts: 23 since Jul 2019
Thanks: 0 given, 11 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


July 7, 2019


Upcoming Webinars and Events
 

An Afternoon With futures io member TropicalTrader

Elite only
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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