How using Ask and Bid inside a for-loop?
This is the code I´m using. Is there a problem using Ask and Bid inside a for-loop? "if((Ask>highest)...". It works in an EA with the Strategy tester but not with a code used for printing. The reason I want to print it is because I want to collect some statistics.
- How can I know local history is updated?
- Exit Code when the profit from Buy && Sell is greater than the breakeven level
- strange for cicle
Per:
This is the code I´m using. Is there a problem using Ask and Bid inside a for-loop? "if((Ask>highest)...". It works in an EA with the Strategy tester but not with a code used for printing. The reason I want to print it is because I want to collect some statistics.
No problem using Bid or Ask inside a loop . . if the loop is very slow and very long there is the possibility that Bid and Ask are out of date . . . I don't see anything trying to print Bid or Ask in your code . . .
This is the code I´m using. Is there a problem using Ask and Bid inside a for-loop? "if((Ask>highest)...". It works in an EA with the Strategy tester but not with a code used for printing. The reason I want to print it is because I want to collect some statistics.