absolute value variable
-
I'm trying to put the absolute value of a variable so that the signals are as follows.
1st Signal/Trade: Sell = (initial/new 0.01)= (Previous BUYs (0) - Previous SELLs (0) +1 ) = 0.01
2nd Signal/Trade: Buy = ( Previous SELLs (0.01) - Previous BUYs (0) + 1) = 0.02
3rd Signal/Trade: Buy= ( Previous SELLs (0.01) - Previous BUYs (0.02) +1) = 0.02
4th Signal/Trade: Sell = (Previous BUYs(0.04) - Previous SELLs (0.01) +1) = 0.04
5th Signal/Trade: Sell = (Previous BUYs( 0.04) - Previous SELLs ( 0.05) +1) = 0.02
6th Signal/Trade: Buy= ( Previous SELLs (0.7) - Previous BUYs (0.04) +1) =0.04
7th Signal/Trade: Sell= (Previous BUYs (0.08) - Previous SELLs (0.07) +1) = 0.02But it did not work - how do I put the variables to match the required size
https://fxdreema.com/shared/zQEk0b8ydThis is the required equation
MathAbs(buylots-selllots)+lots -
@khalids222 said in absolute value variable:
MathAbs(buylots-selllots)+lots
https://fxdreema.com/shared/qorMKTySb
Here I tried to place the variable, but unfortunately the following sizes were shown in the image.
I don't know what the problem
.

Sizes differ from reality -
@khalids222
I think the adjust here should be *lots

-
-
@trader-philipps @roar Thank you very much: I will try it,
-
@trader-philipps This is exactly required - thanks to everyone and especially @trader-philipps Thank you for your effort - you are always creative
