請教一下2段式停利
請教一下2段式停利
150-300 點獲利時, 回徹 100 點停利
300 點以上獲利時, 回徹 150 點停利
寫在一起怎麼寫
我停利是用 Ray 大寫的函數
rane1220.pixnet.net/blog/post/88789979
Value1 = Highest(High,BarsSinceEntry) ;
value2 = Value1 - EntryPrice;
Value3 = Lowest(Low,BarsSinceEntry) ;
Value4 = EntryPrice - Value3;
if MarketPosition > 0 then Begin
if Value2 >= 150 and Value2 < 300 then Sell next bar at Value1-100 stop
else if Value2 >= 300 then Sell next bar at Value1-150 stop ;
end;
if MarketPosition < 0 then Begin
if Value4 >= 150 and Value4 < 300 then BuytoCover next bar at Value3+100 stop else if Value4 >=300 then Sell next bar at Value3+150 stop ;
end;
試試看囉
瞭解了, 感謝,
原來這麼簡單
頁:
[1]