We take the highest value and the lowest value of the x last bars. We have a range (highest-lowest).
Then we calculate 6 different levels, equal to lowest+range*y ratio.
Two levels are used for the entry (long and short, dotted lines) and four levels for the exit on profit (bold lines) and loss (dashed lines).
EU M30. 2010.
extern double ratiolong=0.618; // long entry
extern double ratioshort=0.382; // short entry
extern double ratioexitlong=1.0; // profit
extern double ratioexitshort=0.0; // profit
extern double ratioexitlong2=0.382; // loss
extern double ratioexitshort2=0.618; // loss
Total net profit : 3103.22%
RDD : 29.37%
Note : the indicator is not needed. Test first with fixed lots then adapt the mm according to your broker trading conditions.
Download : HL Fibo Trader (available in the Elite section).