I have a interresant EA but I will debbug trade entries using ObjectCreate instead Ctrade. I will draw in graph all entries with ObjectCreate(chart_ID,name,OBJ_ARROW_SELL,sub_window,time,price)) Itried to do "OBJ_ARROW_SELL" or
"OBJ_ARROW_BUY" but only draw one time.If I try to copy paste differents times code that creates Object only do one time.
Exempel:
int chart_ID=0;
string name="Test Arrow 1 ";
int sub_window=0;
int time=TimeCurrent();
double price=SymbolInfoDouble(Symbol(),SYMBOL_BID);
Print(" time--> ",time," price -->",price);
if(!ObjectCreate(chart_ID,name,OBJ_ARROW_BUY,sub_window,time,price))
{
Print(__FUNCTION__,
": failed to create \"Buy\" sign! Error code = ",GetLastError());
return(false);
}
// For see if create second Arrow
price = price - 500;
Print(" time--> ",time," price -->",price);
if(!ObjectCreate(chart_ID,name,OBJ_ARROW_SELL,sub_window,time,price))
{
Print(__FUNCTION__,
": failed to create \"Buy\" sign! Error code = ",GetLastError());
return(false);
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
I have a interresant EA but I will debbug trade entries using ObjectCreate instead Ctrade. I will draw in graph all entries with ObjectCreate(chart_ID,name,OBJ_ARROW_SELL,sub_window,time,price)) Itried to do "OBJ_ARROW_SELL" or
"OBJ_ARROW_BUY" but only draw one time.If I try to copy paste differents times code that creates Object only do one time.
Exempel:
Anybody know because do that ?
Thanks every body,
Andrei Darie