Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Color and style of order lines
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=200&t=56651
Page 1 of 1

Author:  bunyip [ Thu 02 Aug, 2018, 12:31 ]
Post subject:  Color and style of order lines

I'm sure I've missed it somewhere, but is it possible to control the color and style of the horizontal lines that indicate the entry, stop loss and take profit positions when you enter a trade?

Alternatively, is it possible to control these properties using code in JForex?

Many thanks.

Author:  Platform Support [ Thu 16 Aug, 2018, 12:21 ]
Post subject:  Re: Color and style of order lines

You can customize the colour only under chart theme dialogue:

Image

This is possible to set both through the API:

IChart#getTheme().setColor(ColoredElement.ORDER_LONG_POSITION_TRACKING_LINE, color)

IChart#getTheme().setStroke(StrokeElement.ORDER_LINES_STROKE, stroke)


Attachments:
OrderLineSettings.png [33.45 KiB]
Downloaded 238 times

  Page 1 of 1