♥ 0 |
Seeing if you could help me try to plot a previous high of day and low of day line to chart on the current day. So basically on my charts today 5/23, I would like a script to chart the high of day and low of day of 5/22. I have a similar script that does the premarket high and low. Here is the script Input startTime = 400; input endTime = 929; def timeUntilClose = SecondsTillTime(endTime); def timeUntilOpen = SecondsTillTime(startTime); def targetPeriod = timeUntilClose > 0; rec targetPeriodHigh = if targetPeriod and !targetPeriod[1] then high else if targetPeriod and high > targetPeriodHigh[1] then high else targetPeriodHigh[1]; rec targetPeriodLow = if targetPeriod and !targetPeriod[1] then low else if targetPeriod and low < targetPeriodLow[1] and low > 0 then low else targetPeriodLow[1];
plot pmHigh = targetPeriodHigh; plot pmLow = targetPeriodLow;
Marked as spam
|
Please log in to post questions.