[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4.
Folks, please advise how to display the terminal values of real time =) I NOB =)
I mean the values of the variables (like a moving average, but say in the upper right corner and in the numeric value)
Comment(TimeToStr(TimeCurrent()));
Where are the real time values and where are the moving average values?
search this top: "set up a text mark object".
Good afternoon!
Question about graphic objects:
Is it possible to distribute graphical objects in layers.
For example, to prevent a candle from overlapping a graphical object (arrow).
Otherwise it goes from being on top of a BAR to being overlapped by a bar...
(I initialize graphical objects in my Expert Advisor)
///////////////////////
ObjectCreate
(
switchUpper,
OBJ_ARROW,
0,
Time[0],
sellUpperBid
); // create a graphic arrow object, for visualization of the process
ObjectSet
(
switchUpper,
OBJPROP_ARROWCODE,
234
); // object property "switchUpper" - downwards direction
///////////////////////
Hello!
EA has implemented a closing system by TakeProfit and TrailingStop, the TP works, but the TS does not :(
extern double TrailingStop = 30; -----------------------------------------------+ for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderType()<=OP_SELL && // check for opened position OrderSymbol()==Symbol()) // check for symbol { if(OrderType()==OP_BUY) // long position is opened { // check for trailing stop if(TrailingStop>0) { if(bid-OrderOpenPrice()>point*TrailingStop) { OrderModify(OrderTicket(),OrderOpenPrice(),bid-point*TrailingStop,OrderTakeProfit(),0,Green); return(0); } } } else // go to short position { // check for trailing stop if(TrailingStop>0) { if((OrderOpenPrice()-ask)>(point*TrailingStop)) { OrderModify(OrderTicket(),OrderOpenPrice(),ask+point*TrailingStop,OrderTakeProfit(),0,Red); return(0); } } } } } return(0); }Can you tell me what's wrong?
Hello!
EA has implemented a closing system by TakeProfit and TrailingStop, the TP works, but the TS does not :(
Can you tell me what's wrong?Trails Totals 1, which means that it never reaches the oldest one. Secondly, it trawls orders from newest to the oldest, and older ones may close on stop or take before the trawler gets to it. In general, what is wrong, do you have error logs?
Good afternoon!
Question about graphic objects:
Is it possible to distribute graphical objects in layers.
For example, to prevent a candle from overlapping a graphical object (arrow).
Otherwise it goes from being on top of a BAR to being overlapped by a bar...
(I initialize graphical objects in the Expert Advisor)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Welcome, because the old one is slowing down immensely.
Link to previous top : https://www.mql5.com/ru/forum/134688