Hi and sorry for my poor english.
Actually i'm trying to add alerts on chart for my MT4 interface.
I'm able to draw lines but i need to put special graphic symbols in place.
Is someone able to help me ?
thank's by advance
Hi and thanks for your answer.
Here is my code :
void DrawLine(string LineName,double LinePrice,color LineColor,int LineStyle)
{
if(ObjectFind(LineName)==-1)
{
ObjectCreate(LineName,OBJ_VLINE,0,Time[0],LinePrice);
ObjectSet(LineName,OBJPROP_COLOR,LineColor);
ObjectSet(LineName,OBJPROP_STYLE,LineStyle);
ObjectSet(LineName,OBJPROP_WIDTH,1);
}
ObjectSet(LineName,OBJPROP_PRICE1,LinePrice);
}
This one is working to draw vertical line.
But i want to drhow arrow. So, i look at the help and try code for
- OBJ_ARROW_BUY
- OBJ_ARROW_SELL
But it's not woking.
In the help we have ObjectCreate(chart_ID,name,OBJ_ARROW_BUY,sub_window,time,price)
Thank's for help.
- docs.mql4.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi and sorry for my poor english.
Actually i'm trying to add alerts on chart for my MT4 interface.
I'm able to draw lines but i need to put special graphic symbols in place.
Is someone able to help me ?
thank's by advance