multi time frame EA and HST files
Posted: Fri Jul 08, 2016 3:09 pm
I've learned and should warn the community that for multi time frame coding you must also set the HST files that Tickstory saves as read-only. You have to do it manually.
This solved an issue I was having with EURUSD, HOWEVER the issue remains with SP500. I can run it normally with other EAs, but my multi time frame EA only runs on the SP500 when I try it again for the 2nd or 3rd attempt. Then it runs flawlessly. The error is a zero divide on an iMA calculation since it retuns zero for an iMA that I'm using in a calculation (I do have plenty of bars "behind" for proper calculation). Any clues?
Thank you.
Eddie
PS: you have to tweak Tickstory "Symbol properties" setup and correct the default settings for the SP500 to work at all. For example, currency is set as "USA" instead of "USD" and Profit Calculation and Margin Calculation modes are set to 0 instead of 1. You also have to input your broker`s symbol name on the "map to" field. Other adjustments have to be done on tick size, lot size, etc., but I'm still figuring those out.
This solved an issue I was having with EURUSD, HOWEVER the issue remains with SP500. I can run it normally with other EAs, but my multi time frame EA only runs on the SP500 when I try it again for the 2nd or 3rd attempt. Then it runs flawlessly. The error is a zero divide on an iMA calculation since it retuns zero for an iMA that I'm using in a calculation (I do have plenty of bars "behind" for proper calculation). Any clues?
Thank you.
Eddie
PS: you have to tweak Tickstory "Symbol properties" setup and correct the default settings for the SP500 to work at all. For example, currency is set as "USA" instead of "USD" and Profit Calculation and Margin Calculation modes are set to 0 instead of 1. You also have to input your broker`s symbol name on the "map to" field. Other adjustments have to be done on tick size, lot size, etc., but I'm still figuring those out.