♥ 0 |
Hello all, I’ve been doing some backtesting on the “MovAvgStrat” that comes with the ToS platform, but I’d like to be able to displace the MA in addition to being able to set the length. I attempted to create my own script with copy and pasting the original ToS script and then adding “input displace = 0;” to the MA criteria, but since this is a locked script, I’m assuming there’s actually more code then what I’m seeing.
Any thoughts?
Original ToS code for “MovAvgStrat”: # input price = close; plot Avg = MovingAverage(averageType, price, length); def crossAbove = price crosses above Avg; AddOrder(OrderType.BUY_AUTO, buy, tickcolor = GetColor(2), arrowcolor = GetColor(2), name = “MovAvgStratLE”);
Marked as spam
|
Please log in to post questions.