![]() |
在這個頁面顯示本主題全部的 3 個文章 |
奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=25)
-- 指標參數設定 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=5656)
指標參數設定
在公式中指標參數的設定有5個參數 : P1,P2,P3,P4,P5
日K線設定為(3 , 2 , 7 , 60 , 5 ,10)
三日K線設定為(2 , 2, 7 , 60 , 5 , 10)
週K線設定為(2 , 2 , 7 , 30 , 5 , 10)
月K線設定為(2 , 2 , 7 , 6 , 5 , 10)
因為每次修改程式後先前設定正確的參數會被系統更改為預設值(3 , 2 , 7 , 60 , 5 , 10)又要到每個週期修正參數很麻煩 , 請問如何在程式中寫入將個別週期的參數依正確設定固定的語句,不會因修改程式而被系統更動.謝謝!!
__________________
Steven
P1:=IF(datatype=6,3,IF(datatype=7,2,IF(datatype=8,2,2)));
P2:=2;
P3:=7;
P4:=IF(datatype=6,60,IF(datatype=7,30,IF(datatype=8,6,60)));
P5:=10;
P6:=5;
剛發現有錯 所以修正了
__________________
至誠能勝天下至偽
至拙能勝天下至巧
引用:
最初由 peter109 發表
P1:=IF(datatype=6,3,IF(datatype=7,2,IF(datatype=8,2,2)));
P2:=2;
P3:=7;
P1:=IF(datatype=6,60,IF(datatype=7,30,IF(datatype=8,6,60)));
P4:=10;
P5:=5;
__________________
Steven
全部時間均為台灣時間, 現在時間為14:03 | 在這個頁面顯示本主題全部的 3 個文章 |
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved.