


策略模型如下,望大家批评指正。
--------------------------------------------------------------------
Tested on EURUSD, H4, 15.02.2009 - 13.02.2019
Spread: 2.0, Slippage: 0.0, Min distance of stop from price: 5.0
--------------------------------------------------------------------
====================================================================
== Entry conditions
====================================================================
LongEntryCondition = (EMA(73) < SMA(94))
ShortEntryCondition = (EMA(73) > SMA(94))
====================================================================
== Entry orders
====================================================================
-- Long entry
if LongEntryCondition is true {
if No position is open then Buy at SMA(67) + (0.2 * ATR(78)) Stop;
Stop/Limit order expires after 1 bars.
Stop Loss = (0.6 * ATR(29)) pips;
// Stop trailing (on close)
Move Stop to (SMA(94) + (0.6) * ATR(68))) on bar close;
}
-- Short entry
if ShortEntryCondition is true {
if No position is open then Sell at SMA(67) + (-0.2 * ATR(78)) Stop;
Stop/Limit order expires after 1 bars.
Stop Loss = (0.6 * ATR(29)) pips;
// Stop trailing (on close)
Move Stop to (SMA(94) + (-0.6) * ATR(68))) on bar close;
}
风险提示:本文所述仅代表作者个人观点,不代表 Followme 的官方立场。Followme 不对内容的准确性、完整性或可靠性作出任何保证,对于基于该内容所采取的任何行为,不承担任何责任,除非另有书面明确说明。
喜欢的话,赞赏支持一下

暂无评论,立马抢沙发