简体   繁体   中英

Using tradingview pine script to make strategy for backtesting

I am currently trying to make a strategy for backtesting. I want to know the code for closing the position. when the candle is closed. it is buying in open and selling in close in 4h chart. please giving me advice:) thanks!

There is plenty of information about strategies. Start from examples from

And if it not enough, check this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM