I can not write these simple code to manage a dynamic stoploss:
condition market.position = long ----->
if
close is less than the value of a Ema[1]
then
close position to the next bar
I can not use the CrossAbove () function because it does not accept the double type.
can someone help me?
thanks
Comment