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
Rgd My Trail Stop Code need some modification
Hi guys, thanks for reading.
I have this following trail stop code which working perfectly. But i need some changes, basically what I need is assume I am setting Trail stop to be 10 Points. But I want the profit to be at least +N pips from open price.
That is ..
If i buy eur/usd at 1.3010, the price now is 1.3020, by right if I set 10 points for trail.
My s/l will be modified to 1.3010 (which is my open price). Is it possible to modify the code below so that it will only set trail stop when price is 1.3022 and s/l will be 10 points + N gap (which in this case I set as 2), prefer N to be a variable.
So when price is 1.3020, although I set 10 points, it will not set S/L to 1.3010 but wait till 10 Points + N Points (where in this case N is 2), means at least 1.3022 then It start set the trail stop to 1.3012
Thanks