Can anyone help with how to set a price level and then clear it? I want to set an entry point (i.e. based on a crossover), then exit at a stop at 8% away from the entry. I can handle the stop level, just not sure how to capture and reset the entry price. Robert, thanks for the changing color points. Willby Anuramanus - Trading Discussion
BenT, If you are using ToS, on the Edit Studies and Strategies window, on the bottom left is "Global Strategy Settings..." There you can specify whether to enter a trade in a Strategy only once or more than once. Willby Anuramanus - Trading Discussion
I have a study that changes a moving average plot color based on relationship to a second Moving average - input averageType = AverageType.EXPONENTIAL; input Fma = 3; Input Sma = 55; plot SMovAvg = MovingAverage(averageType, ohlc4, Sma); plot FMovAvg = MovingAverage(averageType, ohlc4, Fma); def Test = movAvgExponential(ohlc4,Fma) > ExpAverage(ohlc4,Sma); AMovAvg.SetPaintingStraby Anuramanus - Trading Discussion