Entry base on price
-
Hello everyone, I need your help.
I use an entry if ema_fast crosses ema_slow upwards, then I enter a buy position.
However, I often encounter fake prices, where when ema_fast crosses ema_slow upwards, the price immediately drops below, then crosses upwards again.So, for example, I want to enter at a price of 26666. Then I create the formula price_high = price_entry + 100
price_low = price_entry - 100.So I want there to be no more entries when the closing price is still between price_high and price_low.
However, if the closing price is outside the range of price_high and price_low, then change the next_entry variable to true.How do I do that?
-
You can do it via variables. As soon as a trade is open you can store those price_high and price_low values into variables and then use them on condition blocks for any new trade.
-
yess thankyou sirr
-
You're welcome.