Sorry Here is the full code :
int start()
{
if ( ObjectFind( "lblChgBg" ) == -1 ) ObjectCreate( "lblChgBg", OBJ_LABEL, 0, 0, 0 );
ObjectSet( "lblChgBg", OBJPROP_XDISTANCE, 0 );
ObjectSet( "lblChgBg", OBJPROP_YDISTANCE, 0 );
ObjectSet( "lblChgBg", OBJPROP_CORNER, 0 );
ObjectSet( "lblChgBg", OBJPROP_BACK, true );
if ( Close[0] > Open[0] ) ObjectSetText( "lblChgBg", "ggg", 600, "Webdings", Blue );
else if ( Close[0] < Open[0] ) ObjectSetText( "lblChgBg", "ggg", 600, "Webdings", Red );
else ObjectSetText( "lblChgBg", "ggg", 600, "Webdings", Black );
}
Thanks
FxTrader_: I need it as the fallowing
-
Play videoPlease edit your post.
For large amounts of code, attach it.
- learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
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
Hi all,
Any one can please help to change this bart of code,
//-------------------------------
if ( Close[0] > Open[0] ) ObjectSetText( "lblChgBg", "ggg", 600, "Webdings", Blue );else if ( Close[0] < Open[0] ) ObjectSetText( "lblChgBg", "ggg", 600, "Webdings", Red );
else ObjectSetText( "lblChgBg", "ggg", 600, "Webdings", Black );
//------------------------------
I need it as the fallowing:
if ( Close[0] > iMA(C,26)
alse if (close[0] < iMA(C,26)
Thanks