hi all, i need some help to improvise this strategy. The following moving average needs improvements as there are positions being opened in a fluctuating market resulting in heavy loss as shown in the picture attached. Can someone help to modify it ?
Required improvements
1. BUY only if current price is more than previous close
Problems
1. Positions opened in fluctuating markets
2. Position open on par with open rate resulting in ZERO / Loss senarios
3. Strategy only useful in a trending upwards market
=========================================================================
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Définition des paramètres du code
DEFPARAMCumulateOrders=TRUE// Cumul des positions activé
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue