Here is one way:
For long position
int lookBack = 50; // how far to look back for a low
double stoploss = Low[ Lowest(NULL, 0, MODE_LOW, lookBack, 0)];
For long position
int lookBack = 50; // how far to look back for a low
double stoploss = Low[ Lowest(NULL, 0, MODE_LOW, lookBack, 0)];
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
See these pictures for a more clear vision:
----
I'm going to use a function like this to close my orders:
My problem is to calculate the "StopLoss" value as said before. Can you help me?