Hi, I'm still stumped on how to run a backtest with 0 spread. Even when I remove these lines from the void DrawSpreadInfo() function in source code, it still shows a distance of 1pip between bid line and ask line on graph:
if (custom_point > 0) {
current_spread = (SymbolInfoDouble(Symbol(),SYMBOL_ASK)-SymbolInfoDouble(Symbol(),SYMBOL_BID))/custom_point;
}
if (current_spread > max_spread) {max_spread = current_spread;}
if (current_spread < min_spread) {min_spread = current_spread;}
I want to run a test where it buys and sells once per bar with 10pips sl/tp so that the trades cancel each other out and the blue line on the graph is perfectly horizontal (currently it goes only downhill to 0 balance).
Thanks!
Screenshot of unchangeable 1pips spread:

Screenshot of downhill slope graph:
https://www.dropbox.com/s/mqk6hvmh3lwzicq/Screenshot 2016-11-23 10.24.30.png?dl=0