PDA

View Full Version : Running Different Strategy Off Same Chart


dgregor5
10-10-2007, 02:38 PM
Hi:
I am running two independent (one long & one short) strategies off the same chart. This evening I experienced the followng:

1/ long entered at 8:30pm (email confirmation sent) & short exited at 8:30pm (no email confirmation sent)
2/ short entered at 9:00pm (email confirmation sent) & long exited at 9:00pm (no email confirmation sent)
3/ at 9:30pm email confirmation sent for 9:00pm exit long trade.

It would appear that there is an interaction between the strategies --- I am using MarketPosition to confirm when position gone flat to send email.

Any thoughts ?

thx
DG

NinjaTrader_Ray
10-10-2007, 02:52 PM
For clarification, Position.MarketPosition is the virtual position held by each strategy and is *not* the actual position of your account.

In case this makes a difference in your logic.

dgregor5
10-10-2007, 03:27 PM
that's what I thought. so is there any other reason why one cannot send simulataneous email (& note to log) from trading different strategies (i.e. one email from one strategy & another email from the other strategy) from the same chart. There are no issues if only running the one strategy.

thx
David

NinjaTrader_Ray
10-10-2007, 03:31 PM
There are no limitations in the SendMail() method that would prevent you from calling this method successfully from simultaneous strategies. I would revisit your logic and ensure that the method is called when you expect it to be called.