Enoch_Bets
New member
I am trying to find the low for a period after my open position. I thought I found a way then I realized that the lowest command requires a constant for the time period. Here's my code:
It tells me the length in the Lowest() must be a constant. Is there anyway to get this to work so that it scans a different length of time everytime?
Code:
def Entry = if isNaN(EntryPrice()) then Entry[1] else EntryPrice();
def EntryBar = if Entry != Entry[1] then barNumber() else EntryBar[1];
def count = barNumber() - EntryBar;
addLabel(1, "Bars Since Entry = " + count, color.white);
def LL = Lowest(low, count)