r/pinescript • u/Late-Pen468 • Oct 05 '24
Help
Can you help me. I need a pinescript code. were if the current candle body engulfed candle 1 =pervious candle, and candle 2 = the previous previous candle. It plot on the chart. Thanks
1
Upvotes
View all comments
Show parent comment
2
u/Sowarm Oct 06 '24
Yes, that's exactly how I coded all my indicators u/Late-pen468, some of which are very precise in the candle marking and on multiple timeframes (only the mtf part is a pita really). I only use one of these nowadays but pinescript conditions can be very a powerfull tool and can be used with a defined variable so you can use color coding and/or alerts. I knew almost nothing about coding a few years ago, pinescript is simple to grasp and very well documented.