Scripting 如何将这两个交易视图脚本组合到1中

Scripting 如何将这两个交易视图脚本组合到1中,scripting,tradingview-api,Scripting,Tradingview Api,每本书的原作者的学分。我基本上想把这两个交易视图脚本合并成一个。简单的剪切和粘贴不起作用。每个脚本在自己的交易视图图表上绘制一行。我想从一个脚本绘制2行。有人能帮忙吗 ***脚本1 //@version=4 // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © anon2414691 //@version=4 study

每本书的原作者的学分。我基本上想把这两个交易视图脚本合并成一个。简单的剪切和粘贴不起作用。每个脚本在自己的交易视图图表上绘制一行。我想从一个脚本绘制2行。有人能帮忙吗

***脚本1

//@version=4
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © anon2414691

//@version=4
study("My BTC log curve",overlay=true)
A=input(defval=0.01, title="A=", type=input.float, step=0.001)
beta=input(defval=0.511798, title="beta=", type=input.float, step=0.0001)
lambda=input(defval=0.42665, title="lambda=", type=input.float, step=0.0001)
c=input(defval=-4.3, title="c=", type=input.float, step=0.01)
m=input(defval=-0.000667, title="m=", type=input.float, step=0.00001)
b=input(defval=-0.01, title="b=", type=input.float, step=0.001)
t=time
genesis=timestamp(2009,1,3,0,0,0)
x=(t-genesis)/86400000
p=A*exp(beta*pow(x,lambda)+c)+m*x+b
plot(p,linewidth=4,color=color.orange)

***脚本2

//@version=4
//
// @author aamonkey
// If you use this code in its orignal/modified form, do drop me a note. 
// 
study("Top Cap [aamonkey]",shorttitle="Top Cap [aam]", overlay=true)

//input
mul = input(35, title = "Multiplier")
launchYear = input(2009, title = "Launch Year")
launchMonth = input(01, title = "Launch Month")
launchDay = input(03, title = "Launch Day")

//Getting start of chart
date = valuewhen(bar_index==0, time, 0)

//Converting start of chart
secondsRaw = floor(date/ 1000)
minutesRaw = floor(secondsRaw / 60)
hoursRaw = floor(minutesRaw / 60)
daysRaw = floor(hoursRaw / 24)

//Start of BTC
startBTC = timestamp(launchYear,launchMonth,launchDay,00,00)
secondsRawB = floor(startBTC / 1000)
minutesRawB = floor(secondsRawB / 60)
hoursRawB = floor(minutesRawB / 60)
daysRawB = floor(hoursRawB / 24)

//Calculation
difference = daysRaw - daysRawB
csum = mul*cum(close)/(difference+bar_index+1) 

//Plot
plot(csum, title="Delta Cap", color = color.yellow, linewidth = 3)