horizontal lines in main chart

Custom indicators, trading strategies, data export and recording and more...
mdtrader
Posts: 39
Joined: Sat Oct 27, 2018 4:05 pm
Location: germany
Has thanked: 12 times
Been thanked: 41 times

horizontal lines in main chart

Post by mdtrader » Tue Feb 05, 2019 9:11 am

how can I draw horizontal lines in the main chart?
I think it can be done with plotting a point at the same pricelevel at every tick but maybe there is a better, easier way to do it?

Thank
Mario

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

Re: horizontal lines in main chart

Post by Andry API support » Wed Feb 06, 2019 9:23 am

Hi Mario
Yes, drawing a line is in fact placing points using Level 1 API. If it limits your performance you may want to use core Level 1.

mdtrader
Posts: 39
Joined: Sat Oct 27, 2018 4:05 pm
Location: germany
Has thanked: 12 times
Been thanked: 41 times

Re: horizontal lines in main chart

Post by mdtrader » Mon Apr 08, 2019 9:01 am

Hi Andrey,
can you provide a example drawing a line using core Level 1 please?

Thanks

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

Re: horizontal lines in main chart

Post by Andry API support » Mon Apr 08, 2019 1:27 pm

Please take a look at MarkersDemo

Post Reply