龙听期货论坛's Archiver

龙听 发表于 2022-11-3 14:22

【Channel Trailing LX】

[code]
[IntrabarOrderGeneration = false]
inputs: Length( 3 ), FloorAmt( 1 ), PositionBasis( false ) ;
variables: var0( 0 ), var1( 0 ) ;

var0 = LowestFC( Low, Length ) ;

if PositionBasis = false then
        var1 = CurrentShares * FloorAmt
else
        var1 = FloorAmt ;

condition1 = MarketPosition = 1 and MaxPositionProfit >= var1 ;
if condition1 then
        Sell ( "ChTrLX" ) next bar at var0 stop ;
[/code]

页: [1]