Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Quad, Ayumi, 1 invisible), 916 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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