Account protection

Posted By: gtell

Account protection - 09/04/16 13:03

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.
Posted By: jcl

Re: Account protection - 09/05/16 15:48

Whatever it might be that make often Zorro crashing, I don't think it is in that code.
© 2024 lite-C Forums