Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/28/26 14:01
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, TipmyPip, James168), 7,328 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Account protection #462023
09/04/16 13:03
09/04/16 13:03
Joined: Jul 2016
Posts: 64
G
gtell Offline OP
Junior Member
gtell  Offline OP
Junior Member
G

Joined: Jul 2016
Posts: 64
Hi JCL and everybody,

I am not sure if you already gave tips on protecting the account.
What are the best practices?
As a first example the following code:

Code:
function checkEquity() {	
	if(Train)	{ Lots=1; return; }
	vars EquityCurve = series(ProfitClosed+ProfitOpen);
	vars EquityLP = series(LowPass(EquityCurve,10));
	if(EquityLP[0] < LowPass(EquityLP,100) && falling(EquityLP)) 
		Lots=-1;
	else
		Lots=1;
	
}



make often Zorro crashing.
Is there anything I need to change?

Thanks.
Cheers.

Re: Account protection [Re: gtell] #462041
09/05/16 15:48
09/05/16 15:48
Joined: Jul 2000
Posts: 28,090
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,090
Frankfurt
Whatever it might be that make often Zorro crashing, I don't think it is in that code.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1