Custom horizontal bar builder

Custom indicators, trading strategies, data export and recording and more...
DanyloL
Posts: 20
Joined: Mon Oct 19, 2020 12:44 pm
Has thanked: 6 times
Been thanked: 1 time

Custom horizontal bar builder

Post by DanyloL » Tue Dec 15, 2020 6:38 am

Hi. I'm developing a custom indicator for my client and I want to find out if I can build horizontal bars (like in a picture below). If it's possible, are there any code samples implementing them? If it's not, what are the alternatives? As I've only made lines such as GraphType.PRIMARY and GraphType.BOTTOM.
Thank you!
Attachments
CustomIndicator.png
CustomIndicator.png (134.64 KiB) Viewed 9691 times

Tags:

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Custom horizontal bar builder

Post by Svyatoslav » Tue Dec 15, 2020 4:31 pm

Screen space painter extension seems to be what you need. You can use it from simplified API too, if you want.

https://github.com/BookmapAPI/DemoStrat ... -extension
https://github.com/BookmapAPI/DemoStrat ... acepainter

blk
Posts: 44
Joined: Fri Nov 01, 2019 8:59 pm
Has thanked: 7 times

Re: Custom horizontal bar builder

Post by blk » Fri Dec 18, 2020 2:10 pm

Any examples on how to use ScreenSpace Extension with Simplified api?

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Custom horizontal bar builder

Post by Svyatoslav » Fri Dec 18, 2020 2:44 pm

No, but it would be exactly the same as with core API. You send a single message to register SSP where you pass necessary callbacks. You can use "Api#sendUserMessage" in Simplified API to send that message.

DanyloL
Posts: 20
Joined: Mon Oct 19, 2020 12:44 pm
Has thanked: 6 times
Been thanked: 1 time

Re: Custom horizontal bar builder

Post by DanyloL » Sun Dec 20, 2020 10:36 am

Thanks

Post Reply