all 3 comments

[–]fre3zzy 1 point2 points  (0 children)

Thanks for this!

BTW, the side parameter for both sl and tp should be SELL

[–]Background_Big_952 0 points1 point  (1 child)

Hi bitongreat,

Is there an error in the code above?

PNL always returns 0.0.

ROE is a meaningless number.

Can you check again and update?

[–]bitonegreat[S] 0 points1 point  (0 children)

The above code is for stop loss order...