You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I want draw different colors for different Situations.
Example:
if(MACD_Value == 100.0)
{ string Col = "Green"; Order_Close(Col); }
if(MACD_Value == 0.0)
{ string Col = "Red"; Order_Close(Col); }
--------------------------------------------------------------------------
// Functions:
void Order_Close( string Col)
{ bool OrdClose = OrderClose(OrderTicket(),1.0,Bid,1.0,Col); }
Result: Mistake implicit Conversion from string to number.
How is the correct Code under MQL 4 ?