Question… when you say carrying the signal into the future… is that in reference to the active[-1]?mod note: script revised 5/8/23
https://usethinkscript.com/threads/...gnals-with-opened-position.15228/#post-125045
if !buySignal[1] and doubleBottom and volumeCheck and timeFilter and spreadCondition and Active[-1]{
buySignal = 1;
sellSignal = 0;
entryPrice = close;
hardStopLossPrice = doubleBottomLow;
targetPrice = entryPrice + currentRange;
}
And does cause repaint issues… I guess not since the signal bar would have closed previously?
Curious because to accomplish a similar effect I reference the bar number from a higher aggregation signal then something like:
if buy signal ag 1 and (buy signal ag 2 Bn < buy signal ag 1 bn) and (buy signal ag 2 Bn > sell signal ag 2 Bn) then 1 else 0
Or the old if buy signal and buy signal[1] or buy signal[2] or etc etc you get the point. Then 0 else 1
Or subtract the bar numbers and within x bars back 0 else 1…
Last edited by a moderator: