Starting to play around with TOS Thinkscript. How would I create something that would take say a 1 period ATR as a % of a moving average of the underlying price.
Looking to take ATR relative to the underlying value and was thinking that I could do it by just dividing one by the other, but that does not seem to work. The following is the script that the condition wizard created.
plot Data = ATR("length" = 2) / SimpleMovingAvg("length" = 4)."SMA";
Looking to take ATR relative to the underlying value and was thinking that I could do it by just dividing one by the other, but that does not seem to work. The following is the script that the condition wizard created.
plot Data = ATR("length" = 2) / SimpleMovingAvg("length" = 4)."SMA";
