Cross below highest price - Value
-
Hello guys , hope you are doing well.
this is my project link : https://fxdreema.com/shared/VyBxjEw2b
im trying to get the highest price of the last 20 candles for example , then store its value in a variable .
the goal is to check a new peak (high) and if the price reversed by 10 pips downward from the high , open a buy trade.
however my code is not opening any trade.
im storing the high - 10 pips in a variable also .
your help is appreciated -
You need to connect block 1 below that 'no position' block.
-
Here is how i modified the project
and here's how i want it to work:
-
update:
the following project is working as expected , but i want to add a functionality where if the price keeps dropping ( x value in pips)after the buy , open another buy , without closing the first one and so on.... -
That 'check profit' block should be connected below a 'For each position block. Otherwise it will not work correctly. Additionally, profit is checked once per bar. Shouldn't it be checked all the time? It should be disconnected from that position and use a separate block tree for that.