


策略模型如下,望大家批评指正。
--------------------------------------------------------------------
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 مسؤولية دقة أو اكتمال أو موثوقية المعلومات المُقدمة، ولا تتحمل مسؤولية أي إجراءات تُتخذ بناءً على المحتوى، ما لم يُنص على ذلك صراحةً كتابيًا.
هل أعجبك هذا المقال؟ عبّر عن امتنانك بإرسال نصيحة للكاتب.

اترك رسالتك الآن