OKCOIN:BCHUSD3M   Bitcoin Cash / Dollar Forward 3 Months
Previous I'v already writed something about it.
I'v updated the detail in comment. In case you guys might not read it. I'm writing this new article

Draw rule
2bar's range break
U1=close>=close and close>=close ? 1 : 0
D1=close<=close and close<=close ? 1 : 0
Draw them with the color you like.
U1->D1 or d1->u1 1st break. Fill the lower gap under the break to make them looks flat.
All these within move which is not belong to break move. Draw them as flat box. just use previous box's price and current close. (This rule is onle suitable for 1st flat box.Next 2nd flat box or more flat box need another rule)
(You must understand that after 1st flat box the 2bar range is narrowed. So it's not likely price will stay flat forever)
If 3rd bar or even 4 or more bar still don't make 2bar range move. Just use current close with another price which is when price first stop break. So it looks all flat. But another side of box is narrower.

Another version called ghost line which maintaince same colorchange with previous bar.
And I'm not faimlar with it.

The graph
https://imgur.com/a/98J5eSn
Is there someone know the alternative draw method for pine?
Seems pine can't use plot in condition.
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out