Im not able to figure out why the strategy.exit only stays for one candle. I was trying to let the trade open till it hits Target or StopLoss.
Will really appreciate some help here.
Remove from Favorite ScriptsAdd to Favorite Scripts
Disclaimer: This one repaints and there are few errors in the coding, which results in such high win percentage. Please refrain from using it on live trading.
This website uses cookies to ensure you get the best experience on our website. To learn more about cookies, including how to control cookies, please read our Cookies Policy.
Thanks mate!
The Traget and StopLoss is mentioned in the exit strategy:
strategy.exit("Exit Short", from_entry = "Short", profit = profitpoints,loss = stoplosspoints, trail_points = trailstoploss)
where the "profitpoints and stoplosspoints are hardcoded at the begining itself.