Dukascopy
 
 
Wiki JStore Search Login

Color and style of order lines
 Post subject: Color and style of order lines Post rating: 0   New post Posted: Thu 02 Aug, 2018, 12:31 

User rating: 2
Joined: Thu 01 Mar, 2012, 17:17
Posts: 42
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.


 
 Post subject: Re: Color and style of order lines Post rating: 0   New post Posted: Thu 16 Aug, 2018, 12:21 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1045
Location: Geneva, Switzerland
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 236 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com