Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 07/09/25 13:41
SGT_FW
by Aku_Aku. 07/09/25 10:00
Online Gamestudio manual is down
by AndrewAMD. 07/01/25 18:04
anyone currently using IB gateway??
by SBGuy. 06/30/25 20:02
Zorro Gives Wrong Spread
by AndrewAMD. 06/24/25 16:51
AUM Magazine
Latest Screens
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Zeal-X2
Who's Online Now
2 registered members (3run, Quad), 292 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ledfoot, liu, LoT, LukeToday, aaaddasaaaadaaa
19145 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ADX values #488754
05/25/25 15:11
05/25/25 15:11
Joined: May 2025
Posts: 2
Y
Yogpot Offline OP
Guest
Yogpot  Offline OP
Guest
Y

Joined: May 2025
Posts: 2
Hi all,

I developed some strategies in Zorro, some of which use the ADX indicator. I then converted a couple of the strategies to Python using ta library for paper trading. However, I realised that the ADX indicator in ta library provides different numbers to Zorro even when using the same dataset meaning I cannot replicate the buy and sell signals. I also tried making my own ADX figure without using ta library but this matched the ta library figure and not the Zorro figure. I also checked tradingview and this also seems to match ta library and not the Zorro figure.

An example below for ADX 14 on SPY daily data:
Zorro Others
[193: Tue 25-05-20] 21.64 20.72
[194: Wed 25-05-21] 21.74 20.24
[195: Thu 25-05-22] 21.19 19.73
[196: Fri 25-05-23] 19.80 18.55

I had a look through the documentation but I can't find an obvious explanation. The only thing I can think of is the smoothing method used to create the PlusDI figure may be different:

"PlusDI: Plus Directional Indicator, a part of the DX indicator, ratio of a smoothed PlusDM to ATR in percent. In the first version the current asset price series is used."

When I created the indicator manually I used the formula described here:

https://chartschool.stockcharts.com...indicators/average-directional-index-adx

OR because I am a noob I am doing something completely wrong. In an ideal world I want to recreate the Zorro ADX figure in python because I have done all the backtesting in Zorro.

Any help which explains the difference appreciated!


Last edited by Yogpot; 05/26/25 20:48.
Re: ADX values [Re: Yogpot] #488775
06/15/25 17:42
06/15/25 17:42
Joined: May 2025
Posts: 2
Y
Yogpot Offline OP
Guest
Yogpot  Offline OP
Guest
Y

Joined: May 2025
Posts: 2
An update to say I gave up on this one... I did find in the documentation that many of the indicators Zorro uses are based on TA-Lib, however, I found the TA-Lib ADX figure in Python is different to the Zorro one. In the end I manually made an ADX figure in Zorro and this one seemed to match other platforms and then ran backtests again. Not sure if was doing something wrong (more likely) or it is a bug (less likely)!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1