|
GTrade.AddButton()
Adds another trade button to the chart.
void GTrade.AddButton( |
Parameter
buttonText
[in] The text that should be on the button.
RiskMode
[in] The mode by which the risk is to be calculated. Percent or a fixed value of the money. See also GTradeRisks
RiskPercent
[in] Risk in percent if RiskMode = RISK_PERCENT.
RiskFixed
[in] Risk in money if RiskMode = RISK_FIXED.
autoTakeProfitCRV
[in] Automatically sets a TakeProfit to the desired CRV value.
backgroundColor
[in] The background color of the button.
textColor
[in] The font color of the button.
FontSize
[in] The font size of the button.
Note
Further calls of this function generate further buttons. As long as you have space in the vertical of your chart you can place unlimited buttons with different values.
Example:
//--- Include the Glib classes |
See also