ボリンジャーバンドはSQから機能します
6件の返信
皆さん、こんにちは,
I am Joseph, and I come from Taiwan. This is my first time post here.
I encounter a question about generated strategies from SQ, and the source code type is Tradestation (EasyLanguage) code, please help answer me if you know this issue.
The source code:
********** Part of source code *********
(SQ_BollingerBandDown(68, 10, 0)[0] > SQ_BollingerBandDown(71, 5, 0)[0]);
(SQ_BollingerBandUp(68, 10, 0)[0] < SQ_BollingerBandUp(71, 5, 0)[0]);
SQ_MoneyManagement(CapitalSize, SLSize, MoneyManagementType, TradeSize, SizeRounding, RiskPerTrade, MaxTradeSize);
******************************************
These three functions, SQ_BollingerBandDown, SQ_BollingerBandUp, SQ_MoneyManagement are not defined in the entire source code generated from SQ.
Does anybody know what their function definitions are, respectively?
Deeply appreciate your feedback. Thanks a lot!
心から、,
ジョセフ
0
0
トーマスさん、こんにちは,
Thanks for your reply. My questions are listed below.
1) Is the file {StrategyQuant}/custom_indicators/SQ_Tradestation.eld build in any Tradestation tool?
2)Although the generated strategies’ source code type is Tradestation (TS, Easy Language), but actually I want to use the generated ones in MultiChart (MC, Power Language).
Because programming type between Easy Language and Power Language is very close, originally I want to modify the generated TS strategies as Power Language format.
However, if MC has no build-in file like TS, how do I know what the three functions’ source code definition (SQ_BollingerBandDown, SQ_BollingerBandUp, SQ_MoneyManagement) are?
0
こんにちは,
I do not have MC currently installed but the process should be identical to one in TradeStation. This is how to import custom code in MC http://www.multicharts.com/trading-software/index.php/Importing_and_Exporting_Studies
0
I had the same error. Doing the import, it works fine! Thanks.
0
The only error I get is that in the Tradestation SQ folder I can’t find SQ_TrueRange. At the moment it is not supported in my platform. Could you please supply it? thanks
0
こんにちは,
here is the SQTrueRange function for Tradestation:
inputs: Period( numericsimple ); vars: periodBefore(0), first(0), second(0); periodBefore = Period - 1; if(High[periodBefore] > Close[Period]) then begin first = High[periodBefore]; end Else begin first = Close[Period]; end; if(Low[periodBefore] < Close[Period]) then begin second = Low[periodBefore]; end Else begin second = Close[Period]; end; SQTrueRange = first - second;
0
6件の返信を表示中 - 1 - 6件目 (全6件中)