I haven't come across this function as of yet if it exist.
- Is it possible to force Metatrader to store chart profile from mql?
- How I assemble my advisor by trial and error
- Lot calculation by Vince
Soul8:
I haven't come across this function as of yet if it exist.
I haven't come across this function as of yet if it exist.
you can remove object or set black color.
ObjectSetInteger(0,name,OBJPROP_BGCOLOR,clrBlack);
ObjectSetInteger(0,name,OBJPROP_COLOR,clrBlack);
Thank you, I did know of these techniques, however if I have 10 objects on my chart it is very inconvenient to have to change them all to black so that blend with the chart. I was hoping there was a function like trading view that allows you to hide them is you choose.
how about simply open another chart of the same symbol
//for example:
ShowHideObjs(false);
ChartRedraw();
void ShowHideObjs(bool MyShowHide)
{
int propVal= OBJ_ALL_PERIODS ;
if( !MyShowHide ) propVal= OBJ_NO_PERIODS ;
for(int i=ObjectsTotal(0,0)-1;i>=0;i--)
{
string ObjName=ObjectName(0,i,0);
if(ObjectType(ObjName)==OBJ_VLINE ||
ObjectType(ObjName)==OBJ_HLINE ||
ObjectType(ObjName)==OBJ_TREND ||
ObjectType(ObjName)==OBJ_CHANNEL ||
ObjectType(ObjName)==OBJ_FIBO ||
ObjectType(ObjName)==OBJ_EXPANSION||
ObjectType(ObjName)==OBJ_RECTANGLE ||
ObjectType(ObjName)==OBJ_TRIANGLE)
{
ObjectSetInteger(0,ObjName,OBJPROP_TIMEFRAMES, propVal );
}
}
}
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