Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 533 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Getting Asset Parameters, when API doesn't provide #484035
08/31/21 12:41
08/31/21 12:41
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Some Brokers do not provide all Asset Parameters via API, such as Oanda & swap (Rolls). The manual says to find these figures on the website, but that's not always easy/possible, and websites have this annoying habit of getting out of date.

Another approach could be to sample the Assets (e.g. for Oanda via script in another thread) and see what values result, possibly doing this a number of times and averaging?

If this latter approach is used, what would be a good sampling frequency over what time period? Hourly for a week? A month?

And how often should it be redone to reverify the averages are still good?

Thanks.

Re: Getting Asset Parameters, when API doesn't provide [Re: DdlV] #484036
08/31/21 13:12
08/31/21 13:12
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Depends on the asset and your account currency. And not all broker plugins will output a correct set of default parameters.

For example, if you have a USD account that only trades USD stocks, you'll never need to update anything.

Other than that, I would never adjust asset parameters more than once per year for futures/CFDs/forex/crypto.

Re: Getting Asset Parameters, when API doesn't provide [Re: DdlV] #484048
09/01/21 18:11
09/01/21 18:11
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks AndrewAMD. Don't follow all your reasoning, though. The context is exactly broker plugin/API problems. If I have to set some parameters manually, wouldn't I want to be as accurate as possible? And therefore update whenever more accurate values are available?

To be sure we're on the same page, this is asset parameters such as Rolls, not strategy optimization, etc. values.

Thanks.

Re: Getting Asset Parameters, when API doesn't provide [Re: DdlV] #484049
09/01/21 18:23
09/01/21 18:23
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
No, you want to set conservative values so that you are not over-confident while engineering your strategies.

And more importantly, APIs usually have access to less information than you'd expect. Rollover info is fairly uncommon. Read this:
https://financial-hacker.com/dear-brokers/

Re: Getting Asset Parameters, when API doesn't provide [Re: DdlV] #484080
09/03/21 12:16
09/03/21 12:16
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
No worries there - I'm severely under-confident... laugh

Yes, I read that years ago... But one can always hope...

But is "confident" really what's happening here (as in confidence interval around result)? It seems to me conservative values don't necessarily change "confident" so much as "bias"ing the results negative so live trading has a better chance of not losing $$$...

Thanks.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1