Optimizing entry

Is there a way to "optimize" entering and exiting on the close vs the open etc. I am currently having to run the test, then change it in the settings, then run it again and compare on report explorer. Ideally I would like to be able to add code that would test multiple entry and exit timing combos in one go.

opti = Optimize ("Open(0) or Close(1)", 0, 0, 1, 1);

Buyprice = Sellprice = IIf(opti, Close, Open);

Thank you very much!

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.