Alert if equity ... and stop then
-
Hello,
i would like to make an EA with alert, if Equity is below XY. But the alert should only appear once, but if equity is above XY and then another time below XY there should be a new alert.
How would you do this?
Thank you.
-
You can play with some Variables or blocks from the Flags category to switch between "above" and "below". I think you want to remember that you reached the "above" or "below" level, so you at any time you can check for the correct side (above or below). Variables are used to remember values, and also those Flags blocks do the same job. You can even use some object on the chart as a memory.