Hi & Low of Current Day Values
-
Have you tried this?

-
Thanks @jstap this seems to work for the 1st trade. But it now continues to place pending orders from the 1st order?
-
You need a no trade/order to limit to only 1. But I assume this would require more blocks, as to limit when and why it places a pending order.
-
@jstap Yes so it would only open 1 pending order from n pips of the modified variable (high of d0).
I've put the no trade / order block last but it's still opening pending orders from the take profit point?
-
You would need to place the trade on this price, and once placed stop another being placed:

-
@jstap Thank you I will give this a try

-
I think this now stops the multiple pendings from opening:
https://fxdreema.com/shared/EYCOLJvYb
Interesting it stays on the 1st opening trade level, might need to figure this out as it's over complicating things like adding a limit. And not taking the next day value when it trips over 0:00
The most simple ideas seem to be the hardest to code, maybe it's not so simple after all!
-
Simple is the way to start
-
@bigfoot The problem is that the market doesn't know what the high will be until today's session is closed? How can you tell the EA what is the high today if it can change the next minute?
-
@l-andorrà Yes this is what I can't figure out. MQL4 has to have a value of the highest high price printed in the current day otherwise it wouldn't be able to draw a wick of the daily 0 candle?
-
This indicator knows the HOD and LOD of the current day so there must be a simple way to sell n pips from this value?

I've tried using the candle count highest price based on 1440 M1 and 1339 M1 as another option but also failed with that idea..
-
So my logic needs to be:
If previous recorded highest price of current day is exceeded then sell a pending order n pips from current price (or near as)..
-
This is getting there, now just need to swap to pending and figure out how to delete or trail the pending with the next signal..

-
I think I'm nearly there with this now. I can use an expiry time as a work around! Thanks

-
Good for you. Congrats!
