Gamestudio Links
Zorro Links
Newest Posts
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Pause button for evaluation shell?
by jcl. 08/07/26 11:43
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (VoroneTZ, TipmyPip, 1 invisible), 1,539 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19222 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Evaluation shell phantom trading: fast vs. slow periods #489576
08/05/26 16:58
08/05/26 16:58
Joined: Feb 2017
Posts: 1,828
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,828
Chicago
I think there's a problem with the phantom trading feature in the evaluation shell.

In eval.c, we see this snippet:
Code
	if(VI(_Phantom) > 0) {
		int PhantomLong = phantom(1,VI(_Phantom),VI(_Phantom)),
			PhantomShort = phantom(-1,VI(_Phantom),VI(_Phantom));


The phantom() function says the parameters are:
Quote
Dir 1 for long trades, -1 for short trades, 0 for both.
FastPeriod Lowpass period for filtering the equity curve.
SlowPeriod Lowpass period for further filtering the fast-term filtered equity curve.


What sense does it make for the fast period to be the same as the slow period?

It might be helpful if we instead have two variables, one for fast period and another for slow period.

So we can replace:
Code
var _Phantom; //= 0, 0..50; 0-None, 5..50 Time period for equity curve trading


with something like this...
Code
var _Phantom_Fast; //= 0, 0..50; 0-None, 5..50 Fast time period for equity curve trading
var _Phantom_Slow; //= 0, 0..50; 0-None, 5..50 Slow time period for equity curve trading

Re: Evaluation shell phantom trading: fast vs. slow periods [Re: AndrewAMD] #489583
1 hour ago
1 hour ago
Joined: Jul 2000
Posts: 28,131
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,131
Frankfurt
We didn't want too many variables in the panel. Since both periods are the same in almost all our strategies, we combined it in a single variable. But youi can call phantom() from your strategy and disregard the version in the eval shell.


Moderated by  Petra 

Gamestudio download | 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