Forum

Multiple pairs in strategytester?

I'm developing an EA with hedge-possibilites. But it seems to me that strategytester is not able to handla multiple pairs, only the pair that's selected for testing. Is this true? I know I've seen other backtests with hedging, how did you guys solve this? To only use forwardtesting's gonna take a

Calculating indicator in other timeframes than the one visualized?

A few months ago I saw a system/indicator that calculated it's values based on other timeframes, than the one present for visualization. Ex. I'm looking on H4-charts, but I want to know the value for H1 avg true range. (yes, I can do this manually, but its for an ea) I don't remember how they solved

Isn't start() supposed to run on every tick?

I've learned that what is placed after the start(), will run on every tick . But my code doesnt agree with me. I'm trying to export to a file on every tick, with this code: int start() { string tab = ""; int f = FileOpen(Symbol()+Period()+".csv", FILE_CSV | FILE_WRITE,',');

Problem with FileWrite etc..

Trying to export tickdata during trades ONLY, for further analysis in excel: I have written an ea, so when an position is taken, i want every tick or 1 minutebar-low to be exported inte an document. I have never used the file-commands before, but I gave it a try