Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Wierd return for priceHigh and priceLow #486425
08/19/22 00:18
08/19/22 00:18
Joined: Feb 2014
Posts: 183
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 183
So I'm trying to determine the range of the previous candle using priceHigh(1)-priceLow(1). I also figured I'd query the priceHigh(1) and priceLow(1) functions themselves. This is a sample of what I get for the AUD/USD pair on 5 min bars.

PreviousCandleRange 0
PreviousCandleHigh -1073741824
PreviousCandleLow 1073741824
PreviousCandleRange 0
PreviousCandleHigh -1073741824
PreviousCandleLow -2147483648
PreviousCandleRange 0

Now I'd expect a range of say 10 pips and priceHigh to be something like .7000 and priceLow to be something like .6990, not the massive numbers listed here.

Re: Wierd return for priceHigh and priceLow [Re: RTG] #486426
08/19/22 00:31
08/19/22 00:31
Joined: Feb 2017
Posts: 1,809
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,809
Chicago
Not enough information. Can you post your code?

Re: Wierd return for priceHigh and priceLow [Re: RTG] #486427
08/19/22 00:36
08/19/22 00:36
Joined: Feb 2014
Posts: 183
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 183
printf("\nPreviousCandleHigh %1d", priceHigh(1));
printf("\nPreviousCandleLow %1d", priceLow(1));
printf("\nPreviousCandleRange %1d", (priceHigh(1)) - (priceLow(1)));

Dammit now I can see the problem. Use "f" not "d"

Last edited by RTG; 08/19/22 00:38.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1