@fxdreema Hi!
Well..I'm not using so many levels Lol ...But I meant about any fibo level from all those levels that my "Draw Fibonacci tool" is using.
@fxdreema Hi!
Well..I'm not using so many levels Lol ...But I meant about any fibo level from all those levels that my "Draw Fibonacci tool" is using.
@miro1360 Great!
Miro, it will only work with fixed lots, right?
Is possible to calculate de lot before the "buy now" block?
@l-andorrà Yes, I did. I couldn't find any topic with this issue. Most of it is related to crossing and drawing.
@dieter I'm also facing this issue

The tester raised the error on 688,29 line
2019.06.25 09:04:41.871 2015.01.26 00:00:01 Project1 US30,H4: array out of range in 'Project1.mq4' (688,29)
Is there anyway to "downgrade" from MQ5 to MQ4?
Copy and paste blocks will work?
Thanks!
Hi!
I think that is a different issue.
I'm able to draw the fibo, get candle cross for one level and also the value for that level. But I want to check all fibo levels and verify if there was a cross for any level using a loop function. I'm trying to automate this check
Hi guys!
I want to check if the price has crossed any of the fibo levels to open a trade.
how can I do it using a loop method?
And there is a way to identify which level was crossed?
Ex: The loop will check if the price crossed any fibo level and it will detect which level was crossed, putting the fibo level that was crossed into a variable for further management.
Thank you!
Hi!
Let's point it:
1 - Correct. Just one order at any time.
2 - Correct.
3 - This case is just an example. I'm using the MACD histogram above zero and not the moving averages. You can ignore them for this case.. The arrow wasn't drawned correctly. Sorry bout that.
Thank you for your time and help! I appreciate it!
@miro1360 Hi , Miro!
Let me ask you one thing: Do we have to use the "For each Pending Order" block before slide it if we're trading only with 1 order at the same time?
And I'm facing some issue with pending order price level change: I'm using "Risk % based on Stop Loss Size". The "Slide Order" block only change the entry price. This issue was posted here .
I need to calculate the lote size again . And keep adjusting the order while the trading condition still valid.
Could you, please, take a look ?
Thank you so much!
@l-andorrà I'll try to show you:
We need two conditions to open the first pending order. But lets just call it as "condition 1" and "condition 2" .
IF condition 1 AND condition 2 is true, we'll open a buy stop order like this:

For buy, we'll need to ajust the pending order price only if we have lower highs.
Then, we've opened this Buy Stop, but it was not triggered AND one of the conditions to open it still valid. And we need to ajust like this:

Delete the first pending order as it was not triggered and open a new one related to previous candle. Always opening it at high of the previous candle.
In this case, the order was not triggered as well in the next candle:

And once more, the candle 0 (actual candle) didn't triggered the order. And we'll do the same: Verify if condition 1 is still valid, delete pending order without trigger and open a new order related to candle 1 (or previous ).

If the condition to buy is no longer valid, we will delete the pending order and starts it all over.
We'll look for the lower price to buy while the condition is valid. And the highest price to sell while the sell condition is valid.
@l-andorrà Yes, sure.
In this shared example it was only to ilustrate the way i'm thinking on the logic. I didn't change the condition blocks. It's just to have an overview of the strategy.
The logic before open any pending order is working fine. I just need to change the pending order position.
Example: All the conditions for open a Buy Pending Order at Candle 1 High have been met. Then the EA will open a Buy Stop order at Candle 1 High. So far, everything is fine.
My issue is: If in the next candle we still get a pending order. I mean: The pending order was not triggered, AND the first of the two conditions is still valid, the EA should delete this pending order (that was open in previous candle, aka candle 1, and now the order is at high of the candle 2) and open another pending order at high of the candle 1 using the same "Buy Pending Order Block" . As the order wasn't triggered for the first candle, we can assume that the high of the next candle was lower than the max of the previous one and the entry price and stop level should be adapted to the previous candle.
And it keep changing until trigger the order or the first condition to open buy is no longer valid .
I'm not sure if I make myself clear.
Thank you for your help!
@eklonsousa said in Pending Order Adjust:
@l-andorrà Hi!
Yes! Exactly .The same logic used by code. Candle 1= Previous.
And Max = Candle High. Sorry for this example. I'm using only buy to simplify the idea.
Thanks!
@l-andorrà Hi!
Yes! Exactly .The same logic used by code. Candle 1= Previous.
Hi guys!
I want to create an strategy which after condition A is met, it will open a pending order in the Candle 1 Max.
In the next candle, in case of pending order was not triggered, I want to change it's entry price and stop loss level.
Just like this exemple:
https://fxdreema.com/shared/DSjb2mRB
This logic isn't working. The EA is not changing the pending order (or opening another with different price and stoplevel)
The "slide" block will not help due the need to change the stop loss level also.
Thank you!