with run in first gretting order the var. get his value=/ 0 and no line ?
is it ?
Before you create lines print (in tab "Experts") values of variables: open_buy_time and for a vertical line the variable "open_buy_price" does not need.
Print("open_buy_time=",TimeToString(open_buy_time));
ResetLastError();
if(!ObjectCreate(0,"Line_bulls",OBJ_VLINE,0,open_buy_time,0))
{
Print(" can not draw VLINE: ",GetLastError());
};
Karputov Vladimir: Before you create lines print (in tab "Experts") values of variables: open_buy_time and for a vertical line the variable "open_buy_price" does not need.
;-)
you are right . solved with you thank you.
with search again before to draw line. as below:
.
.
.
for (int ix = OrdersTotal() - 1; ix >= 0; ix--)
{
if(OrderSelect(ix, SELECT_BY_POS, MODE_TRADES)==true)
{
if (OrderSymbol() != Symbol() || OrderMagicNumber() != Magic_buy) continue;
if (OrderSymbol() == Symbol() && OrderMagicNumber() == Magic_buy)
{
if (OrderType() == OP_BUY) {buy_position_exist="yes";open_buy_time=OrderOpenTime();}
else buy_position_exist="no";
}
}
}
if(!ObjectCreate(0,"Line_bulls",OBJ_VLINE,0,open_buy_time,0)) { Print(" can not draw VLINE: ", GetLastError());};
}
//------------------- III
its corrected on commented;
but what about for draw line by this line:
this have problem to draw vline
but if i used and change as below , so there is no problem and work good :
?
Example #1:
Example #1:
no, it does not effective.
i will simple it (will delete some huge part of code ) my ea and put source here , so you good people can run and help.
all problem to draw vline refer to the below highlighted :
thank you all.
no, it does not effective.
i will simple it (will delete some huge part of code ) my ea and put source here , so you good people can run and help.
thank you all.
Before you create a line, check the value of a variable: "open_buy_time". Probably this variable is zero.
as you see:
after i get the order then i will draw line, isnt it ?
as you see:
after i get the order then i will draw line, isnt it ?
And before you create lines print values of variables: open_buy_time and open_buy_price.
P.S. For a vertical line the variable "open_buy_price" does not need.
as you can see:
with run in first gretting order the var. get his value=/ 0 and no line ?
is it ?
as you can see:
with run in first gretting order the var. get his value=/ 0 and no line ?
is it ?
Before you create lines print (in tab "Experts") values of variables: open_buy_time and for a vertical line the variable "open_buy_price" does not need.
Before you create lines print (in tab "Experts") values of variables: open_buy_time and for a vertical line the variable "open_buy_price" does not need.
;-)
you are right . solved with you thank you.
with search again before to draw line. as below:
its ok.
and thank to all help.
;-)
you are right . solved with you thank you.
with search again before to draw line. as below:
its ok.
and thank to all help.