What takes place.
Assume that I will get a visual buy signal on a chart at the price of 123.456.
The market trades up to and at that price and therefore the signal appears on the chart. Trading pauses after the one trade that caused the signal.
Trade automation waits for the very next tick before submitting the order.
I have 2 concerns....
1. I could find myself with a chart signal going short and the next trade could be in the reverse direction, causing a buy. In this case I believe I will find my chart position to be out of sync with my brokerage position.
2. That I sit with a chart signal being opposite of my brokerage position when a lot of power comes in and blows through my price. Something I think is likely if trading gets tight.
Has anyone got an idea about how to approach this?
Part of the code follows...
Thanks!
Don
If Sellfilled=0 then begin;
If Close >= SellNT[1] then sellshort next bar at SELLNT STOP;
Sellfilled=1;Buyfilled=0;
If marketposition = -1 and barssinceentry=0 and lastbaronchart then begin;
if Sellfirstorder=0 then begin;
Success = NTSellMarket("MyOrderId", 20000);
Sellfirstorder=1;Buyfirstorder=0;
Comment