Help Needed: Drawing Vertical Lines and Labels in Trading Data

Custom indicators, trading strategies, data export and recording and more...
ppsposito6579
Posts: 1
Joined: Sun Nov 19, 2023 8:16 am

Help Needed: Drawing Vertical Lines and Labels in Trading Data

Post by ppsposito6579 » Tue Dec 19, 2023 9:41 am

Hey everyone, I've been looking through various examples but I can't figure out how to draw vertical lines from the last price, bid, or ask, and how to include labels with information inside them. I'm a budding programmer and maybe I'm just not finding the information. Thanks to anyone who can help me out.

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Help Needed: Drawing Vertical Lines and Labels in Trading Data

Post by Andry API support » Tue Dec 19, 2023 9:57 am

Hi, the summary for APIs are here https://bookmap.com/knowledgebase/docs/API

If you're a beginner you may want to start with Simplified API (Java) or Python API.
https://bookmap.com/knowledgebase/docs/ ... lified-api
https://bookmap.com/knowledgebase/docs/ ... Python-API

These will let you draw simple indicators, e.g. Simplified API last price indicator
https://github.com/BookmapAPI/DemoStrat ... story.java
For very simple labels you can use examples with icons from Simplified API. But Core API (Java) is highly recommended for labels. Though, beginners may find it not so easy to use.
https://bookmap.com/knowledgebase/docs/API#core-api

If you have any questions you may ask them here or in our Discord API channel
https://discord.com/channels/7965002039 ... 9483396147

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Help Needed: Drawing Vertical Lines and Labels in Trading Data

Post by Andry API support » Tue Dec 19, 2023 9:59 am

For vertical lines you will need to use Core API, please take a look at these examples
https://github.com/BookmapAPI/DemoStrat ... acepainter

Post Reply