In addition to how I said that the trade should increase with every buy or sell order (so add a line after ticket made, TradeCount = TradeCount+1), TradeCount can be set to 1 manually in inputs, so that if the user starts sometime in the middle of the month instead of right after NFP cooling off period, then they can tell the EA that it's already had a trade on the pair, so that the extra conditions of price above highest high/below lowest low, for previous and current week, are also taken into consideration, before the trade is taken. Very nifty way of psyching out the EA to not just using the "1st trade after NFP cooling off period" rules (since entering in the middle of the month may make someone nervous, using the extra conditions are a great way to limit losing trades).
Don
[quote=ForexNewDude;2444941]
What is TradeCount = 0 for?
I do not see any code that adds to this counter. It seems to stay zero forever unless I am wrong. Is there code to increase this once an order has been made?
Don
[quote=ForexNewDude;2444941]
What is TradeCount = 0 for?
I do not see any code that adds to this counter. It seems to stay zero forever unless I am wrong. Is there code to increase this once an order has been made?