Setting colors for trades

Created at 19 May 2013, 09:31
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
lec0456's avatar

lec0456

Joined 14.11.2012

Setting colors for trades
19 May 2013, 09:31


I thought it would be cool to have the ability to set a color for a trade like you set a label...


@lec0456
Replies

cAlgo_Development
23 May 2013, 12:14

Thanks, but where do you suggest to use this ccolor? On a chart?

We do not plan to implement something like this in the nearest future,


@cAlgo_Development

lec0456
25 May 2013, 08:03

meant like this: 

var SellPairStopOrder = new StopOrderRequest(TradeType.Sell, TradeVol, PiviotPrice)
		           			{Label="SellPairOrder",
		           			StopLoss=PiviotPrice+(orderTradeSL*Symbol.PipSize),
		           			TakeProfit=PiviotPrice-(orderTradeTP*Symbol.PipSize)+Symbol.Spread,
		           			Expiration = pendingOrderExp};
						Trade.Send(SellPairStopOrder);

when you create the trade you have a color parameter and set it.

var SellPairStopOrder = new StopOrderRequest(TradeType.Sell, TradeVol, PiviotPrice)
		           			{Label="SellPairOrder",
		           			StopLoss=PiviotPrice+(orderTradeSL*Symbol.PipSize),
		           			TakeProfit=PiviotPrice-(orderTradeTP*Symbol.PipSize)+Symbol.Spread,
		           			Expiration = pendingOrderExp,
						Color=Color.Red};
                                                Trade.Send(SellPairStopOrder);

thought it might be cool when having trades executed by different robots or different criteria within a robot, you can easily identifiy a trade.  


@lec0456