怎么将插值数据画到未来?

Discussion in 'TradeStation' started by eagleandgun, Jun 11, 2010.

  1. 例如,(1)我已经将SMA(CLOSE,30)移中,在easylanguage中的代码就是:
    plot1[14](average(close,30),"moving average"),如图中红线所示;

    (2)已通过插值得到图中绿线上每一个点的数值;

    (3)怎么在easylanguage中将前面提到的红线和绿线连接起来,并在TS或MC中显示?


    [​IMG]
     
  2. p53
    https://www.tradestation.com/support/books/pdf/EL_Essentials.pdf

    Displacing Plots

    Displacing plots allows you to visually move any analysis technique plots left or right on the chart by some number of specified bars. A positive number moves the plot to the left and a negative number moves the plot to the right. Space to the right of the last bar must be sufficient to accommodate the displaced plots or an error will occur.
    The structure of a NoPlot statement for an indicator is:
    Plot1[+/-N ] Square brackets after the Plot statement are used to indicate the number of bars to displace the plot left or right. Positive = left and Negative = right.

    Usage Example1 (displacing a plot into the future):
    Plot1[-5](Average(Close,5), “avg close”);

    Usage Example2 (displacing a plot historically):
    Plot1[5](Average(Close,5), “avg close”);

    These examples move the plot right and left, respectively, on the chart.
     
  3. 谢谢konit.

    我想我没表达清楚我想要说的,简化上述问题:如果我知道今后3天的收盘价分别为:明天--〉2000,后天---〉2050,大后天---〉2030。怎么用EASYLANGUAGE编写代码将上述3个价格在TS中画出来?前提是不用EL中的TL_NEW函数。