Why not close the equations؟
-
https://fxdreema.com/shared/ly9KXy9O
To solve the equations when the price goes below the red line, I want to close the open positions above -
@khalids222
Sorry for the mistake, regardless of the way the trade was opened, I'm just talking about the close feature as an example? Why don't close work here?
Every time a new deal is opened.
The distance between the highest and lowest point is measured, and then divided by the number of trades.
Then the output is subtracted from the current price.
If the price falls below the final product, the winning deals are closed.
example :
old price= 100
new price= 200
trade count=4
newprice - oldprice = R1
R1/4=R2
R2-CLOSECANDLE(0)=R3
IF PRICE BELOW R3 CLOSE OLD BUY -
@miro1360 The main problem is only the close ؟Why not close؟
Could you please help me
https://fxdreema.com/shared/ly9KXy9O -
@khalids222 I guess the problem is block 10. You are dividing a decimal number by a bigger integer number. That creates a much smaller number I'm not sure fxDreema can fully understand. Di you check what valye rangle can achieve variable R2?
-
@l-andorrà Thank you very much, always creative
-
@khalids222 You are welcome.