TradingView
smith26
١١ أيلول سبتمبر ٢٠١٦ ٠٣:٤٩

Buy&Hold 

الوصف

A basic Buy and Hold strategy, which is useful for comparing against your other strategies. You have to specify when you want the strategy to exit in the code, because the built in 'barstate.islast' and 'barstate.isrealtime' functions don't seem to work properly.

التعليقات
smith26
Good news! Tradingview has now incorporated a Buy&Hold comparison into their backtester, so this should not be needed any longer :)
المزيد