izzuddin muhd:
So adjust your strategy
I have written a code that I use to take profit in XAUUSD for 1 minute time frame. the problem with this EA is that it can make a profit when it follow the trend line, but when reversal came I keep taking losses, thus diminishing my profit. is there any way to fix my code ?
As you can read from the code, when the candle break above or below the moving average line, I will initiate a buy stop or sell stop action. the portion code down below is to continuously adjust SL and TP. after a long build up downwards / upwards, the graph tends to just move up hit the entry point, hit the sl and hit entry point again before it truly reverse it's cycle.
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
I have written a code that I use to take profit in XAUUSD for 1 minute time frame. the problem with this EA is that it can make a profit when it follow the trend line, but when reversal came I keep taking losses, thus diminishing my profit. is there any way to fix my code ?
As you can read from the code, when the candle break above or below the moving average line, I will initiate a buy stop or sell stop action. the portion code down below is to continuously adjust SL and TP. after a long build up downwards / upwards, the graph tends to just move up hit the entry point, hit the sl and hit entry point again before it truly reverse it's cycle.