Then you can use the 'move' block', but then don't forget to use a 'For each object' block above it. That way you will move it without erasing it but probably you will need more blocks that the other way. 
Posts made by l'andorrà
-
RE: Horizontal line movement (SOLVED)posted in Questions & Answers
-
RE: EA behaves strangely and opens order in wrong placeposted in Questions & Answers
Try to include a 'Once er bar' block on top of the tree. That way you'll get just one trade per bar (at most) and your 'box' will be updated accordingly.
-
RE: Conditional trailing stop lossposted in Questions & Answers
So you want to open a buy/sell and, at the exact same time, a pending sell/buy in the opposite direction. Right?
This means you can have two open trades at the same time (buy and sell). Right?
Can there be additional trades or pending orders or just these initial two?
-
RE: Open a position in reverse position of previous trade (closed with stop-loss) with take-profit of same amount of loss in pips (to breakeven my previous loss)posted in Questions & Answers
I see. Can you plase share your project to take a look on it? That wil be easier to do.
-
RE: (Betting: Martingale / Paroli) NOT WORKING...posted in Bug Reports
Any additional info would be appreciated.
-
RE: is it possible to open demo trades if say 4 losses in a row opens trade on another account.posted in Questions & Answers
I guess you're talking about communicating mora than one MT4 platform. If so, you will need to master the infamous 'Terminal Variables' to do it. Not an easy thing to do, IMHO. Maybe a real programmer (not me) can help you.
-
RE: Backtesting stops abruptly and I don't know why (but I guess why)posted in Questions & Answers
I found something. Once backtesting was not an option, I tried forward testing. The EA doesn't work properly and I got this error message:

I have no idea what it means but I guess the tow final numbers are code lines related to it, so here they are:
For line 105:
102 {
103 public:
104 static bool Bull_candle_signal;
105 static bool Bear_candle_signal;
106 static double Break_Even_price;
107 static double OBV_MA_red;
108 static double OBV_MA_yellow;
109 static double buys_only;
110 static double sells_only;
111 static double Buy_counter;That line is showing one of my variables.
For line 13490:
13487 else if (mode=="equity") {size=(value/100)AccountEquity()/(LotSizeTickValue);}
13488 else if (mode=="balance") {size=(value/100)AccountBalance()/(LotSizeTickValue);}
13489 else if (mode=="freemargin") {size=(value/100)AccountFreeMargin()/(LotSizeTickValue);}
13490 else if (mode=="equityRisk") {size=((value/100)AccountEquity())/(sl((TickValue/ticksize)*point)*PipValue(symbol));}
13491 else if (mode=="balanceRisk") {size=((value/100)AccountBalance())/(sl((TickValue/ticksize)*point)PipValue(symbol));}
13492 else if (mode=="freemarginRisk") {size=((value/100)AccountFreeMargin())/(sl((TickValue/ticksize)*point)PipValue(symbol));}
13493 else if (mode=="fixedRisk") {size=(value)/(sl((TickValue/ticksize)*point)PipValue(symbol));}
13494 else if (mode=="fixedRatio" || mode=="RJFR")Any clue?

-
RE: zone recoveryposted in Questions & Answers
Ok. I can help you. Do you have any initial project to begin with?
-
RE: Horizontal line movement (SOLVED)posted in Questions & Answers
It doesn't because that variable is never updated. You stores the original value from the first 200 candles and nothing else happens. If you want to move that horizontal line to a higher position if your condition block is true, you need a new 'Modify Variable' block in which you update the variable's value with the new one.
Then you will have to erase the old line a draw the new one.
-
RE: the EA opens several positions at once and if I add the "no trade" the EA breaks down. Help me please.posted in Questions & Answers
@lnx28 said in the EA opens several positions at once and if I add the "no trade" the EA breaks down. Help me please.:
@l-andorrà It's a little tricky for me to explain.
you have a more private social network where I can send you an investor account and at the same time explain my vision?
Sure. You can send me a PM if you want.
-
RE: Conditional trailing stop lossposted in Questions & Answers
Ok. Obviously we need to study your conditions in a more detailed way. So you say you want:
a) two or more trades had been opened and consecutively
What do you exactly mean by 'consecutive'? Consecutive candles? Consecutive buys/sells independently of the candle? Anything else?
b) one or more trades had been closed by TP
Sma here. Two or more trades in what time period? Or in which other conditions?
-
RE: I need help with this EA please, Here I leave the project and the video where I got the idea!posted in Questions & Answers
It's a complex and dense project. What's wrong exactly?
-
RE: Hi, Can anyone help me to creating 'pending order' based on TP of my last closed trade,please?posted in Questions & Answers
Substitute the 'Sell pending orders in grid' block by a 'Sell pending order' one instead.
-
RE: No trade when candle body pips from 20EMA > ATR14posted in Questions & Answers
@sirboyce said in No trade when candle body pips from 20EMA > ATR14:
@l-andorrà Hmmm...I tried the buy condition but I don't think this is really what I am looking to do. I can't see anything in that block that is checking Candle ID1 total pip movement after close and then determining that the total pips is below the equivalent ATR pips
You will need a variable to stor that information and then compare it with your up and down limits. Not everything can be done with a single block, unfortunately.

-
RE: No trade when candle body pips from 20EMA > ATR14posted in Questions & Answers
@sirboyce said in No trade when candle body pips from 20EMA > ATR14:
@sirboyce Sorry. Ignore. I see it is the Check Distance block (I guess you somehow renamed it in your example for clarity?)
Exactly.
-
RE: Hi, Can anyone help me to creating 'pending order' based on TP of my last closed trade,please?posted in Questions & Answers
Firstly, I recommend you to specify candle ID 1 on ALL your condition blocks (both left and right operands). If you lett candle ID 0 as they are now, You can have more than one crossing on the current candle. This is a possible reason for multiple trades.
On the other hand, both 'Pass' blocks are irrelevant. You can remove them. Block ID 11 is also unnenessary as you specified sell on block ID 9. Finally block IS 14 is also unnecessary because it is on the 'On Trade' tab. That block is designed to filter actions on the 'On tick' tab.
Try all these changes and let me know.
-
RE: I have a doubt with the logic of the conditions.posted in Questions & Answers
Miro's answer is the solution to what you are looking for.