Download MetaTrader 5

simple question

To add comments, please log in or register
fxnew
189
fxnew  

hello everybody,


I have a problem, which may be easily corrected.

In a EA I started to program I use the command line just to test buy signals in general. the mode is "every tick" and "visual"

TicketBuy=OrderSend(Symbol(),OP_BUY,0.1,Ask,20, Bid-Stoploss*Point,Bid+Takeprofit*Point);


Now when I use this line in an older EA there are buy signal/ arrows, so everything is o.k.

the new EA I started to program is based on the already working EA... I tried to use the identical program lines

Now I copied this line at the same place in the new EA and I tried to leave everything

identical to the old EA, but there are no arrows= buy signals appearing... compilation is o.k. as far as I can see


I've been checking things for a couple of hours but I haven't found a solution.

If anybody has a suggestion thanks in advance

Carl Schreiber
7109
Carl Schreiber  
fxnew:

hello everybody,


I have a problem, which may be easily corrected.

In a EA I started to program I use the command line just to test buy signals in general. the mode is "every tick" and "visual"

TicketBuy=OrderSend(Symbol(),OP_BUY,0.1,Ask,20, Bid-Stoploss*Point,Bid+Takeprofit*Point);


Now when I use this line in an older EA there are buy signal/ arrows, so everything is o.k.

the new EA I started to program is based on the already working EA... I tried to use the identical program lines

Now I copied this line at the same place in the new EA and I tried to leave everything

identical to the old EA, but there are no arrows= buy signals appearing... compilation is o.k. as far as I can see


I've been checking things for a couple of hours but I haven't found a solution.

If anybody has a suggestion thanks in advance




I think you need to add the color (default=clrNONE):

TicketBuy=OrderSend(Symbol(),OP_BUY,0.1,Ask,20, Bid-Stoploss*Point,Bid+Takeprofit*Point, "", 111, 0, Yellow); 
fxnew
189
fxnew  
issue seems to be resolved, it probably had to do with predefined SL TP parameters
fxnew
189
fxnew  
I forgot to thank "Gooly" for the feedback: thanks
To add comments, please log in or register