rottentrade
Member
I found this code online on how to tally up the orders traded:
But for some reason, it's not quite accurate as you can see in the image. Can anyone explain how to get this down correctly?
Code:
def Entry = CompoundValue(1, if IsNaN(EntryPrice()) then Entry[1] else EntryPrice(), 1);
def Count = CompoundValue(1, if Entry != Entry[1] then Count[1] + 1 else Count[1], 0);
But for some reason, it's not quite accurate as you can see in the image. Can anyone explain how to get this down correctly?
Last edited: