Please help with this
-
I want to write a program like this,Like the one in the picture.But I don't know what the problem is,https://fxdreema.com/shared/M1zPw9tab
-

-
please help me.thanks
-
You need to create a variable for the lot size value. and then do that calculation for the next lot size value immediately below both 'buy/sell now' blocks. Are you familiar with variables?
-
Is that so?

-
I don't know which module is needed for the calculation of the next lot value below the buy and sell block
-
@13353299527 Correct. That is the way to create a variable. What you need now is making the calculation of the next lot size every time a trade is closed. Something like this in the 'on trade' tab:

-
@l-andorrà Thank you very much for your help .I wanted to write about such an Expert Advisor. At the price of 2294 buy0.01, when the price falls back to 2290 sell0.03, the price returns to 2294 buy0.09, and so on, until the profit is closed.But it didn't turn out what I wanted

I don't know if my logic is correct, below is the link, please help me to see, thank you very much https://fxdreema.com/shared/VVkbSwikc -


-
You can use 100 in the LOSS_PIPS constant, but call it by name using -LOSS_PIPS.
You can follow this link: https://fxdreema.com/shared/sLsWF5Nmb and change the reason for placing a new trade, and your multiplication.
-
@jstap Thank you so much for your help, I'm going to give it a try now
-
Maybe it's because of the Internet, I can't see the picture I uploaded before, this picture is what I want to write and can only be traded .

-
Probably because of the network, I can't see the image I uploaded before, and this image is the expert I want to write
-
This is my revised one, and I'm not sure if my understanding is correct.
https://fxdreema.com/shared/ZYhUzz9U -

-
To have this as a minus _LOSS_PIPS you need to call it by name with a - like this -_LOSS_PIPS
To have ADD_ORDER_MULTIPLYER * in adjust you need to call by name like this *ADD_ORDER_MULTIPLYER -
@jstap The minus sign and the multiplication sign cannot be typed in the name of the constant
-
No, but they can in adjust, so use something like this in adjust *VariableName, VariableName being the specific exact name of your variable