View Single Post
Old 01-12-2017, 02:55 AM   #1
klior14
Junior Member
 
Join Date: Nov 2016
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default Range Indicator creation

Hi,
As a junior develooer I need your help.
I'm trying to create a new indicator that:
Gets three inputs
1. A market price (double). for example 11225.00
2. First number (double) 1.001
3. Second number (double) 0.999

The indicator returns two double numbers
A. Input #1 * Input #2 (For ex. 11236.00)
B. Input #1 * Input #3 (For ex. 11214.00)
The two return outputs creates a range indicator between both

Second issue:
How to round a number
0.5 and up --> Round to upper value ( 1.0 )
0.49 and down --> Round to lower value ( 0.0 )

Thanks !
Lior
klior14 is offline  
Reply With Quote