
一進場馬上就被市場給電了,很不舒服!閃人!終止最初的錯誤,往往可能是最小的錯誤。
If BarsSinceEntry(0)=0 then //註1
If MarketPosition < 0 and C-EntryPrice(0) > EntryPrice(0)-L then //註2
ExitShort next bar at Market
end if
If MarketPosition > 0 and EntryPrice(0)-C > H-EntryPrice(0) then //註3
ExitLong next bar at Market
end if
End if
/*
註1:進場的當根K線才做判斷,之後就用不到。
註2:手握空單則於收盤時,如果收盤價減去進場價大於進場價減去最低價→這一根K線痛苦比快樂多。
註3:手握多單則於收盤時,如果進場價減去收盤價大於最高價減去進場價→這一根K線痛苦比快樂多。
*/