Gamestudio Links
Zorro Links
Newest Posts
Issue with converted data
by steventrading15. 12/12/24 21:30
MT4 Bridge connectivity issue
by FXSurgeon. 12/11/24 14:40
Zorro Gives Wrong Calculation During Backtest
by vicknick. 12/11/24 06:31
Price is not shifted with PriceOffset
by vicknick. 12/10/24 13:30
Zorro Gives Price that Doesn't Exist
by jcl. 12/10/24 08:55
Multicore Optimize
by jcl. 12/10/24 08:48
Get timestamp as a var
by Mac81. 12/08/24 01:50
Multicore Optimizations
by Cristoig2001. 12/05/24 14:14
AUM Magazine
Latest Screens
Galactic Strike X
Zeal-X2
The Bible Game
A psychological thriller game
Who's Online Now
1 registered members (sequi), 648 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sequi, MikeHe, Algospider, jordi, FXSurgeon
19090 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to enable trading for negative price? #488426
11/03/24 10:25
11/03/24 10:25
Joined: Apr 2023
Posts: 38
V
vicknick Offline OP
Newbie
vicknick  Offline OP
Newbie
V

Joined: Apr 2023
Posts: 38
I have negative prices for some futures assets, due to stitching up different contracts to generate a continuous futures price. However, Zorro will cap the negative prices at zero.

How to enable Zorro to continue trading at negative price, just like for positive price?

Re: How to enable trading for negative price? [Re: vicknick] #488427
11/04/24 16:15
11/04/24 16:15
Joined: Feb 2017
Posts: 1,753
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,753
Chicago
Use PriceOffset, as discussed here:
https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=486155#Post486155
Quote
PriceOffset
Amount added to historical or live prices of the current asset, for special purposes such as shifting negative prices to the positive scale. Set it after selecting the asset, but before loading history for affecting historical prices.

https://zorro-project.com/manual/en/spread.htm


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1