is there any sysntax that can check open order sequence? like, to find out oldest position is a buy or sell, and to the latest is a buy or sell.
actually i'm running firebird EA, this EA trade on reversal. so the most latest position has the highest possibility of winning. As the possibility increase, i wished to increase the lot size of new positions.
example, the EA open a sell order at 1.2600, another sell at 1.2680, and another sell at 1.2760, and another sell at 1.2840, at this point, i would like to increase the lot size so that it helps average out the earlier losing positions.
is there a function which can determine the sell order sequence? like everytime the EA reloads (after being shut down and start again) it tracks the last few positions.
Chad
actually i'm running firebird EA, this EA trade on reversal. so the most latest position has the highest possibility of winning. As the possibility increase, i wished to increase the lot size of new positions.
example, the EA open a sell order at 1.2600, another sell at 1.2680, and another sell at 1.2760, and another sell at 1.2840, at this point, i would like to increase the lot size so that it helps average out the earlier losing positions.
is there a function which can determine the sell order sequence? like everytime the EA reloads (after being shut down and start again) it tracks the last few positions.
Chad