Need help on EA running performance

 

I am a newbie on EA programming but already have several years on c#.

I try to create EA, when first time I run it on strategy tester it run quite fast.

but later on it run very slow just to test 1 day data.

I though I've added some complexity on the EA, so I tried to changed it back to original EA by removing newly added feature. but still the EA run very very slow on strategy tester.

If you have similar experience please advise?

is there anything I need to set etc?


Thank you very much

Willy

 

string operations and file write operations slow down.

try to use stringconcenate and only if i.e. logall==true is set

i have no isssues except i use strings and filewrite while testing/optimisation

 
meikel:

string operations and file write operations slow down.

try to use stringconcenate and only if i.e. logall==true is set

i have no isssues except i use strings and filewrite while testing/optimisation

Thanks for your advise Meikel.

at this moment, I do not use filewrite nor strings.

but I use like uptrend==true (ie (if uptrend == true) )

is that what you meant by logall==true?


Rgds

Willy

 

while testing or optimizing i try to avoid all unnecessary operations like comment, print ect.

i set a extern variable to control if i want a comment or not. and set it to false if i am optimising or testing ( or control this via isOptimising etc)


have a look at the journal, maybe you have a division by zero error or something similar - this can happen accidently ...

Reason: