why is this function called when the bool is false?

To add comments, please log in or register
lancastersteve
46
lancastersteve  

Hi


This has probably got the better of me for a good 2 days now. In the attached code when I run it in Tester I should only be able to get "Short B called" to print in the Journals tab when the bool for it (rolShortB) is set to True. But, I can't see where it is getting switched to True?! Please can someone help?


I've ran Prints, and the values of rolShort B come out as false before the trade is placed, and then also false after the trade is placed. Screenshots attached of the journal output. I've no idea why this seems to be running so frequently.



Thanks 

Steve

Files:
rolShortB.png 142 kb
Keith Watford
Moderator
19338
Keith Watford  

To be honest, I gave up trying to read that code.

The indentation is all over the place,apparently random blank lines.

Use the styler on your code (Ctrl + ,) and tidy it up a bit.

To add comments, please log in or register