FX31337 / FX-BT-Scripts

:page_facing_up: Useful scripts for backtesting.
MIT License
34 stars 39 forks source link

convert_csv_to_mt.py: Add option to include variable spread. #28

Open kenorb opened 8 years ago

kenorb commented 8 years ago

If --spread is -1, then try to calculate real/variable spread as per logic in CSV2FXT.mq4

extern bool   UseRealSpread=false; // Use real (variable) spread

This can be checked while running the code by:

Comment(“Spread: ” + DoubleToStr((Ask – Bid) / Point, 2));