|
回復 1# michael1215
我不清楚你的easylang水平,所以用最簡單的syntax幫你。
1想請問一下如果要寫一個簡單的測試功能:例如:5分鐘移動平均線穿越10分鐘移動平均線就買進一口多單要這麼寫呢?
有兩個做法:
(A) 只開一個五分鐘圖,計算兩bar的合併後的open, high, low, close.概念是(不是完整的程式):
open_10min = open[1];
If high > high[1] then high_10min = high else high_10min = high[1];
If low < low[1] then low_10min = low else low_10min = low[1];
close_10min = close;
好處是只開一個五分鐘圖,但syntax較繁複。
(B) 開一個五分鐘圖和一個十分鐘圖。概念是(不是完整的程式):
Inputs: length_10min(50), length_5min(100);
If Average(Close of data2, length_10min) < Average(Close, length_5min)
And Average(Close[1] of data2, length_10min) > Average(Close[1], length_5min) then
Buy next bar at market;
2MC有辦法去做選擇權的下單嗎?
insert > signal > "choose your strategy" > properties > Auto Trading > Require order confirmation
3市面上有什麼書是比較推薦的?
想學EasyLanguage可考慮到tradestation.com買。
想學Strategy可考慮到library借英文書。
哈!哈!更好的辦法當然是報名參加公司的課程和公司的即將出版的ebook啦。
http://www.fledgetrade.com/ebook.php
Disclaimer: Fledge Algorithm Trading Co. Ltd will not be responsible for any loss arising
from any investment based on any forecast, recommendation or trading programs or other
market information provided. Trades in correspondence with algorithm programs, particularly
leveraged investment, for instance, trading in stocks, futures, Forex and other securities in
derivatives, could be uncertain and involve potential profits as well as the risk of losses. |
|