How to use variables
-
Case - :
The EA should identify the last closed trade is either the profit or loss. If it was a loss,
-
The EA should store the value of the loss (in money) somewhere. and trade using doubled lot size than user entered in the inputs of EA.
-
Then EA should check the sum of the previous closed profit trades from the last lost trade. (the trade we stored at beginning to compare the recovery process).
-
If the SUM of profits trades (from the last loss) is greater than the last lost trade, (which means the lost $$ has been recovered) then turn back to normal lot sizes.
actually I don't know how to use variables for this. If you guys can help me with this, I can fast learn it.
-
-
In a pink block loop check the last closed trade and the profit, if win pass to normal lot trade block, if loss pass to trade block that is getting the last trade lot and *2. Then a separate tree controlling the close, start a project doing some, then you can add it all together.
-
you mean this one ?. -
Add a shared link rather than a picture, what are you asking with that?