Here is the code: # # TD Ameritrade IP Company, Inc. (c) 2013-2022 # input priceH = high; input priceL = low; input percentageReversal = 5.0; input absoluteReversal = 0.0; input atrLength = 5; input atrReversal = 1.5; input tickReversal = 0; Assert(percentageReversal >= 0, "'percentage reversal' must not be negative: " + percentageReversal); Assert(absoluteReversalby trader6500 - Trading Discussion
Hi All -- I would like to plot the difference between each LastL and LastH, either on the bar chart or on a lower chart. This is to have an idea of how much of a move to expect up or down for purposes of setting profit targets and stops. I figured out that LastH and LastL only exist for the bar where the pivot occurs. It's a very complicated code. Thanksby trader6500 - Trading Discussion