I have an issue using the SendMail command in my strategy. I have a strategy that works how I want, the only issue is, it does not send an email alert for buy and sell in real time. So, in reading some of the earlier posts, I found that it I needed to have the Historical set to false during real time for the strategy to send an email alert. So, I turned Historical to false in my strategy and it now sends an email.
The problem is, it now does not follow the same strategy rules with the Historical turned off as it does with it on. With Historical on, the strategy follows my intended rules & matches backtest results. With it off, it can give me a signal that does not match the strategy with Historical on. I guess this makes sense that it may produce different signals since it does not have historical data. But then why would it be a requirement to have Historical = false for this to work if it changes the strategy results? I'm going to review my strategy, but I don't think I understand this...
Is there a way to get around this or is this a problem with my strategy? Maybe there is something else I'm missing?
Thanks,
Lee

Comment