請教回吐3000止蝕方法
請開各大大,如何回吐3000止蝕 用吊燈式追蹤停利( 15 點=3000)If BarsSinceEntry(0) = 0 Then begin
PosLow = Low;
end;
If MarketPosition <0Then begin
If Low < PosLow Then begin
PosLow = Low;
end;
buytocover("TSP1") Next Bar at PosLow +15Stop;
end else begin
buytocover("TSP2") Next bar at Low + 15 Stop;
end ;
If BarsSinceEntry(0) = 0 Then begin
PosHigh = High;
end;
If MarketPosition >0Then begin
If High > PosHigh Then begin
PosHigh = High;
end;
sell("TSP3") Next Bar at PosHigh -15 Stop;
end else begin
sell("TSP4")Next Bar at PosHigh -15 Stop;
end;
可以利用以下兩個保留字 來計算獲利回吐的停利/停損
maxpositionprofit 持倉後最大獲利(金額)
openpositionprofit 持倉目前獲利(金額) easytrader788 發表於 18-2-1 22:47
可以利用以下兩個保留字 來計算獲利回吐的停利/停損
maxpositionprofit 持倉後最大獲利(金額)
openposition ...
IF maxpositionprofit - openpositionprofit >=3000 THEN XXXX next bar at Close+30 stop close+29 - Slippery limit;
end;
感謝分享
頁:
[1]