rottentrade
Member
def BuyLine;
if close[1] > BuyLine[1] { <------ ???
BuyLine = Double.NaN;
} else if CBD == ConsecutiveBarsDown {
BuyLine = Trigger_Line;
} else {
BuyLine = BuyLine[1];
}
I found the above code in another thread and I was wondering if you can explain it for me:
https://usethinkscript.com/threads/intraday-scalping-strategy-for-thinkorswim.10698/
I don't understand what the logic is when it comes to BuyLine[1]. Don't you need to define what the BuyLine is first? There was no mention of BuyLine before this.
if close[1] > BuyLine[1] { <------ ???
BuyLine = Double.NaN;
} else if CBD == ConsecutiveBarsDown {
BuyLine = Trigger_Line;
} else {
BuyLine = BuyLine[1];
}
I found the above code in another thread and I was wondering if you can explain it for me:
https://usethinkscript.com/threads/intraday-scalping-strategy-for-thinkorswim.10698/
I don't understand what the logic is when it comes to BuyLine[1]. Don't you need to define what the BuyLine is first? There was no mention of BuyLine before this.