TradingView
MRKCHAMPION
20 Ağu 2019 14:46

Candle Patterns Strategy V1 

Bitcoin / U.S. DollarFOREX.com

Açıklama

//Modify DanyChe script to work in latest version of pinescript
//The script allows you to test popular candlestick patterns on various instruments and timeframes. In addition, you can configure risk management (if the value is zero, it means the function is disabled), and you can also specify the time of the trading session (for example, so that the positions are not transferred to the next day).
//The author is grateful to JayRogers and Phi35, their code examples helped a lot in writing the strategy.
Yorumlar
DanyChe
Interesting. Line 35. Why is a value indicated instead of a variable?
MRKCHAMPION
@DanyChe, wanted to put something in quickly, didnt have time to research what value would be proper in pinescript v4, i plan to go back and update it, time() in v4 says it only requires a resolution, i am not sure how to get current resolution in v4
MRKCHAMPION
@MRKCHAMPION, t = time(timeframe.period, sess), that will work
DanyChe
DanyChe
@MRKCHAMPION, I get it. I think in a pinch, you can try adding period through input
Daha Fazla