Hi & Low of Current Day Values
-
Hi I'm trying to test a few ideas and need to set pending orders from n pips above/below the current low/high. Then deletes and resets the old pending if a new one is triggered.
I think I'm on the right track, if anyone has looked at this before then i would be grateful for any tips/hints!
https://fxdreema.com/shared/k2jCWvhvb

-
@bigfoot This is the way add/subtract pips to the high/low prices:

I don't fully understand what you mean by deleting pending orders while creating new ones. Do you mean moving them maybe?
-
Hello @l-andorrà Thank you I will try this.
It's a pretty simple system. Basically sets a pending order for a reversal n pips from the high or low.
If a new hod or lod forms without the pending order being filled it gets deleted and another pending is placed.
I was thinking if this could be done on the minute candle close to save lots of orders placed then cancelled?
-
If you need a new positioning only, them moving the existing ones is a better option.
-
@l-andorrà OK great thanks I'll have a go at it

-
-
you need "sell pending order" and "buy pending order" blocks nested. then in "on Trade" tab use "trade create" block and link it with "close all pending orders" block
-
Hi @pacificnet-lk Thanks for your help. Do you mean Delete Pending Orders block as I can't find a close allpending orders block?
-
Hi I've tried modify variable block to get the high low of day but I can't get it to place a pending order beneath/above that variable.
I have tried the following using the market properties and server time but again can't get a pending order to work. Logic seems sound, if current minute candle high is the same as the market properties price high then sell pending n pips below?
Any guidance would be appreciated!

-
If I understand it correctly, as soon as a new high or low is identified, the order should be moved accordingly, right?
-
@l-andorrà Hi yes but I can't get it to place the 1st pending order?
-
Ok, we are working on two different things at the same time. So please let's move step by step. Let's begin with programming the first pending order. When is the first pending supposed to be programmed?
-
@l-andorrà Thank you, I do need some help with this...
When a new high of the day is reached I want to be able to place a pending sell order n pips below that high of day.
-

This is what I am doing manually
-
So the pending order is programmed today but you are searching for yesterday's High and Low. Right?
-
@l-andorrà no, i think this is why it is difficult for me to programme.
I am using the high of the current day from the open of the current day.
-
I was thinking that this logic would be sound, but something is missing and no pending sell order is sent?

C:\Users\Nathan\Pictures\hilo.png
-
-
@bigfoot I think we cannot know the exactly high of day candle until it was complete.
So it can be the high of last m1 candle. No need to be Day0 candle. -
@gobeef The problem would be which last m1 candle.
It would need to the last highest of the current day? Otherwise it would just use the last M1 high value which could be anywhere in the daily range?
