I want to code an indicator that tracks the average cost of manually entered orders,
(entry Price factored by # of contracts)....and then simply prints it on the screen.
My questions are....
1. Where do I capture the entry price /# of contracts for a manually
entered order?
2. Where do I capture the fact that all orders have been filled...at which point
I reset the average cost back to "0" (or whatever)....and wait for the next round
of orders.
NOTE: The Ninja DOM tracks PnL based on FIFO, last price, etc. but I have not found a way to make it only track avg cost based on multiple entries. It insists of reseting the cost based on where orders got taken out.
While the PnL calc is useful for tracking where my account is at any given time, it does not give me a simple average cost based purely on entry.
Thanks.............
Comment