Count objects - page 4

 
Yango # :

do you know how i can get the price of a specific item that is closest to the current bid/acs rate?

To do this, you must first know this very price. After that, you must loop through all the objects and compare the property of the object with the price.

 
Vladimir Karputov #:

To do this, you must first know this very price. After that, you must loop through all the objects and compare the property of the object with the price.


it only becomes difficult if you have the same color on the chart 2 or 3 times
 
Yango # :

it only becomes difficult if you have the same color on the chart 2 or 3 times

This is your problem - you simply have to think over the correct algorithm. For example, you can not thoughtlessly create objects on the chart - you need to focus on the minimum expediency.

 

yes, that's right. but I just can't get it at the moment

 
Yango # :

yes, that's right. but I just can't get it at the moment

You cannot formulate your idea for four pages - hence the constant failures. You should:

1. Clearly formulate your task

2. First think, and then only draw graphical objects on the chart

 
I couldn't foresee these problems. so i'm trying to solve it now
Reason: