Now let's go for the Entry Groups new issue only going forward.
I'm intending to incorporate some LIFO logic into the Entry Groups issue solution.
The idea would be to have a 1st Hotkey move the 1st latest filled orders Targets,
then a 2nd hotkey move previous latest filled orders Target an so on.
For example using a list containing 2 LONG Entries Positions,
1st LONG Entry Position = 2 contracts/ 2 Orders of 1 contract each
2nd LONG Entry Position = 3 contracts/ 3 Orders of 1 contract each
Something like
hotkey X
for (int index = ((submitTargetsOrdersList.Count > 0) ?
submitTargetsOrdersList.Last() : quantitySelector.Value); index > (submitTargetsOrdersList.Last() - 3) ; index--)
hotkey Y
for (int index = ((submitTargetsOrdersList.Count > 0) ?
(submitTargetsOrdersList.Last() - 2) : quantitySelector.Value); index > (submitTargetsOrdersList.Last() - 5) ; index--)
In post #117 you suggested
My idea would be to use those variables as
Xa = 2 = 1st orders count (1st LONG Entry Position)
Xb = 3 = 2nd orders count (2nd LONG Entry Position)
Xn = ? = nth orders count (nth LONG Entry Position)
in
After 1st LONG Entry Position = submitTargetsOrdersList.Count = 2
hotkey X
for (int index = ((submitTargetsOrdersList.Count > 0) ?
submitTargetsOrdersList.Last() : quantitySelector.Value); index > (submitTargetsOrdersList.Last() - submitTargetsOrdersList.Count) ; index--)
After 2nd LONG Entry Position = submitTargetsOrdersList.Count = 5
hotkey Y
for (int index = ((submitTargetsOrdersList.Count > 0) ?
(submitTargetsOrdersList.Last() - Xa) : quantitySelector.Value); index > (submitTargetsOrdersList.Last() - submitTargetsOrdersList.Count) ; index--)
etc.
Thanks!

Comment