Specification
Lines for EA:
CONDITION (all ma in order growing or decreasing) Ranges_Inside_Fix_Scale: p.n.s;pns;pns... GrouRanges1: p.n.s.;p.n.s.;p.n.s.;p.n.s.;p.n.s.;p.n.s. GroupRange2: p.n.s.;p.n.s.;p.n.s.;p.n.s.;p.n.s.;p.n.s. ------------------------------------------------------ ENTRY1 D3_Minimum: D3_Maximum: ------------------------------------------------------ GENERAL SETTINGS FILTER_SPREAD_MAXIMUM: TAKE_PROFIT_POINTS: STOP_LOSS_POINTS: TOLERANCE: LOT1_SIZE: POINTS_FOR_LOT2: LOT2_SIZE: POINTS_FOR_LOT3: LOT3_SIZE:
===============================================
Descriptions:
Conditions
===============================================
Descriptions:
Ranges m.a. aligned up or down
1) m.a. of all ranges must be aligned up or aligned down
example: ma 10 level price > ma 60 level price > 150 ma, It is aligne up; 10 level price < ma 60 level price < 150 ma, It is aligne down
2) Ranges_Inside_Fix_Scale: p.n.s;p.n.s;p.n.s.... Only these ranges are allowed at fix scale interval, if any other ma is inside of It, EA can not trade (top/down fix scale is maximum and minium level price ate extreme right of chart)
3) GroupRange1
p = first period, n = number of MA, s = step. Each bloc of MA separated by ";"
p = period of moving average
n = number of moving average
s = step
example:
range 1 = 50, 100, 150
range 2 = 200, 300, 400, 500
range 3 = 600, 800, 1000, 1200
It would be: 50,3,50;200,4,100;600,4,200
4) GroupRange2
The same logic for Range 1
Signal
1) EA finds:
d1 = distance of minor moving average to major from Range 1
d2 = distance of minor moving average to major from Range 2
d3 = d1 divided by d2
Entry
Ea finds d3
3) Ea makes sell at next open bar if signal is aligned up or buy if algined down
4) Tolerance, like 1st tick can be higher/downest 10% distance open/close previous bar, I set this
5) FILTER SPREAD is Max spread for open position
6) TAKE PROFIT In points
7) STOPLOSS (if lot 2 is on and lot 3 is off, ea has stop loss after lot 2; if lot 3 is on, stop loss just after lot 3 is openned - like martingale)
Stop loss in points
8) LOT1
Size of lot1
9) LOT2 (if off, ea uses just lot 1; if on, ea opens lot2 if trades goes against and trigger points for lot2)
Size for lot2
Points for lot2
10) LOT3 (if off, ea uses just lot 1 and lot 2 if lot 2 is on; if on, ea opens lot3 if trades goes against lot2 2 and trigger points for lot3)
Size of lot3
Poinst for lot3
Source free
Example, I set:
d1 = range 1 and range 2, so d1 = distance in points from extremes beteween r1 and r2
d2 = r3 and r4, d2 the same logic as d1
d3 = d1/d2
d1, d2 and d3 must be plotted on chart
Range_Inside_Fix_Scale = r1, r2, r3
It means just ranges 1, 2 and 3 must be inside 1.34415 and 1.30665
In this example, condition is not match, cause there are mas from others ranges inside fixscale
Fix scale is given by extremes level price, as appears on f8: