討論區列表
MultiCharts
一般模式
討論串模式
標題:
[發問] 每上漲0.15%加碼賣出一單位
by 2018-10-14 19:36:35
0
暱稱:
艾琳
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
可以請問該怎麼寫從距離十年高點0.9%開始賣出,每上漲0.15%加碼賣出一單位呢,謝謝您。
在一定範圍內應該只加碼一次,但是結果卻變成每根K棒一直加碼,可以解救我嗎,謝謝。
if marketposition<=1 and price <= LowestFC( Price, 2400)*1.06
then buy("average LE1")1 contract next bar at market ;
inputs: Price( Close ), Length( 6 ), OverBought( 80 ),OverSold( 20 ) ;
variables: var1( 0 ) ;
var1 = RSI( Price, Length ) ;
if marketposition>=-1 and price >= HighestFC( Price, 2400)*0.91
then sell short ("average SE1")next bar at market ;
if marketposition>-2 and price >= HighestFC( Price, 2400)*0.925
then sell short ("average SE2")next bar at market ;
if marketposition>-3 and price >= HighestFC( Price, 2400)*0.94
then sell short ("average SE3")next bar at market ;
if marketposition>-4 and price >= HighestFC( Price, 2400)*0.955
then sell short ("average SE4")next bar at market ;
if marketposition>-5 and price >= HighestFC( Price, 2400)*0.97
then sell short ("average SE5")2 contracts next bar at market ;
if marketposition>-6 and price >= HighestFC( Price, 2400)*0.985
then sell short ("average SE6")next bar at market ;
if marketposition>-7 and price >= HighestFC( Price, 2400)
then sell short ("average SE7")next bar at market ;
if marketposition < 0 and var1 crosses over OverSold
then buytocover ( "average RsiSX" ) 1 contract next bar at market ;
if marketposition = 0 and price < HighestFC( Price, 2400)*0.91 and var1 crosses over OverSold
then Buy ( "RsiLE" ) next bar at market ;
if marketposition = 0 and price > LowestFC( Price, 2400)*1.06 and var1 crosses under OverBought
then Sell Short ( "RsiSE" ) next bar at market ;
if marketposition > 0 and price < HighestFC( Price, 2400)*0.91 and var1 crosses under OverBought
then Sell ( "RsiLX" ) next bar at market ;
if marketposition < 0 and var1 crosses over OverSold
then buytocover ( "RsiSX" ) 1 contract next bar at market ;
if marketposition<=1 and price <= LowestFC( Price, 2400)*1.06
then buy("average LE1")1 contract next bar at market ;
if marketposition<=2 and price <= LowestFC( Price, 2400)*1.05
then buy("average LE2")2 contract next bar at market ;
if marketposition<=3 and price <= LowestFC( Price, 2400)*1.04
then buy("average LE3")3 contract next bar at market ;
if marketposition<=4 and price <= LowestFC( Price, 2400)*1.03
then buy("average LE4")4 contract next bar at market ;
if marketposition<=5 and price <= LowestFC( Price, 2400)*1.02
then buy("average LE5")5 contract next bar at market ;
if marketposition<=6 and price <= LowestFC( Price, 2400)*1.01
then buy("average LE6")6 contract next bar at market ;
if marketposition<=7 and price <= LowestFC( Price, 2400)
then buy("average LE7")7 contract next bar at market ;
if marketposition > 0 and var1 crosses under OverBought
then Sell ( "average RsiLX" ) next bar at market ;
第1篇:
[發問] 每上漲0.15%加碼賣出一單位
by 2018-10-17 22:19:25
0
暱稱:
客服一號
信箱:folkchen.sp2@gmail.com
成就:發文(0) / 回文(0) / 推薦(96)
槽點太多
1。加碼的勾下面要選 排除相同訊號
2。marketposition 是多空,只有 -1 1 0,不會有 -2 -3 等
3。HighestFC( Price, 2400) 會一直變,不能這樣用,要在第一口進場後存到變數,之後都用它去計算,不能每根都重抓高點
4。看有沒有其他人要補充的
第一頁
上一頁
1
下一頁
最後頁
討論區列表
MultiCharts
MultiCharts
│
討論區
│
會員專區
│
教學講座
│
支援與服務
│
產品購買
│
申請試用
All rights for MultiCharts Trading Software are reserved by MultiCharts, LLC
凱衛資訊股份有限公司 營利事業統一編號(21261212) 著作權所有 本網站最佳瀏覽解析度為 1024 x 768
隱私權政策
│
網站安全政策
│
著作權說明
若不清楚點選圖片更新驗證碼
註冊帳號
忘記密碼
解除鎖定