TradingView
himansu.altradegroup
2018년 7월 9일 오전 2시 20분

Pivot Points H/L by Himansu 

Nifty 50 IndexNSE

설명

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.
코멘트
Virtual_Machinist
Repaint
himansu.altradegroup
@Virtual_Machinist, Yep this was repaints.
himansu.altradegroup
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.
EatsMyLife
maybe I can try to take a look. could you please explain where the target is in in the picture?
himansu.altradegroup
@EatsMyLife,
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.
더보기