Questions tagged [highest]

134 questions
0
votes
2 answers

Get the highest value from an Array-Javascript

I need to get the highest score from this Array, but it kept giving me the [0] position and the highest which is 88 and 98 const classInfo = { students: [ { firstName: "Joe", lastName: "Smith", score: 88 }, { firstName: "John",…
QuanN
  • 1
  • 1
0
votes
1 answer

I want to find the highest price since entry in pine script?

I want to find the highest price and exit when current price is lower than highest price. The code to find the highest price is copied from here. how can I make a simpler code that finds highest price since entry? I also want to close the deal if…
haeleon
  • 13
  • 1
0
votes
1 answer

How to ID highest volume bar in a range, and launch vwap

Hi i have looked endlessly and cannot figure out how to achieve this in pine. Would anyone be willing to help me with this? i want to ID the highest volume bar in say a session, or day, week, then launch a continuous vwap from that candle. whether…
0
votes
2 answers

how can i find the total and the The highest marks in 2d array

I have 2 tables, the first one displays the name of the student, and the second one displays the marks for the student. each student has 2 semesters. I wrote it like this: import java.util.Scanner; public class Main { public static…
user15659710
0
votes
2 answers

How can I fix the Study Error: "Invalid value of the 'length' argument (0) in the 'highest' function. It must be > 0. When making a trailing stop?

I am trying to make a trailingstop multiple of the ATR, since a buy or sell signal has occured. Naturally I try the barssince(long) function, to determine the amount of bars since the buy signal. Then I use the highest function to find the highest…
user15070504
  • 9
  • 1
  • 4
0
votes
4 answers

How can I find the 2 highest values for each row, then add them together?

In the table below, how can I find the two highest values in each row, then add these values together? I have a copy of the attached table in RStudio. Is there a line of code I can use to add the two highest numbers on each row, so that I can apply…
0
votes
2 answers

How to make the dice game compare scores between other players?

I'm creating a dice game. I'm stuck, I want the game to compare for each player's roll output roll = randint(1, 6) so the player with the highest score wins. But, I really don't know how to do that. from random import randint def main(): player…
0
votes
4 answers

Postgres: count value from column which has highest count

I have a table as below IDnumber ProcessID 1 21 2 22 3 21 4 21 5 22 6 22 7 22 8 22 9 23 Now I have a query as below select…
SurajK
  • 29
  • 5
0
votes
1 answer

Color background within price range of only latest 5 candle ( highest and lowest price level)

I want to color the background of price range within the latest 5 candle. Get the highest price and lowest price among them and color the background. Other previous candle ( candle 6 and previous ) I just want to ignore. I'm newbie and still…
0
votes
3 answers

Finding highest value from a record

I'm trying to code a procedure which goes through a record of numbers and finds which one is highest, the code currently is below. The issue I have is that it just seems to list the last score on the record (not the highest). Any help is greatly…
orange
  • 5,297
  • 12
  • 50
  • 71
0
votes
1 answer

Get the item with the highest count

Can you please help me to get the item with the highest count using DAX? Measure = FIRSTNONBLANK('Table1'[ItemName],CALCULATE(COUNT('Table2'[Instance]))) This shows the First ItemName in the table but doesnt get the ItemName of the Highest…
0
votes
1 answer

How to get a list of highest values from a column?

I have a sheet where the first two columns have row and column addresses and the third column has integer values. I would like to extract the highest value and it's corresponding address from columns 1 and 2 into a separate list on the sheet. There…
Adam B
  • 93
  • 1
  • 3
  • 13
0
votes
0 answers

Retrieve a list of top ten highest points on Earth

I need to retrieve a list of top ten highest points on Earth using SPARQL on Wikidata SELECT ?mountain ?mountainLabel WHERE { ?mountain wdt:P31 wd:Q8502. OPTIONAL { ?mountain wdt:P610 ?highest_point. } SERVICE wikibase:label {…
Baris
  • 1
0
votes
1 answer

C# Array sorting(how do i get the highest value?), with user generated one dimensional array on console app

I am currently starting to learn c#, but i just cant figure out how to get the highest value out of this array using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace…
0
votes
1 answer

Get the highest value in div container

I'm very new to this, just trying to piece together snippets from other posts. I have a survey scale which you rate from 1 - 5. After that it will display your answer for each item. I would like to get the majority of votes. Sample in my…
Raissa Ricarde
  • 108
  • 1
  • 11
1 2 3
8 9