I would like to write in easylanguage a system that weighs several parameters by giving each trade a score according to how many parameters it satisfies, and by accepting the trade depending on whether the overall score is high enough.
How do I do it?
For example, for my system, the basic signal is the crossover of two moving averages, and those are going to stay that way, but each crossover would get rated with a score from 1 to 10 by each of these parameters:
time at which it happens
RSI
volume
support/resistances
general trend (according to a different timeframe)
volatility
All these parameters are ready, but I don't know how to transform their action from a "veto" that gets rid of a trade not satisfying them, to just a "vote" that only discourages a trade.
Until now, I have used true/false so I could turn them off while testing, but even good parameters just end up hurting one another when they are used all together.
For example this is the long signal:
If CurrentBar > 1 And Fast Crosses Above Slow
and ((VFast > VCoeff * VSlow and Vol_filter) or Vol_filter = false)
and ((Close < PivPnt * (1 + S_PrTol) and PP_filter) or PP_filter = false)
and ((SPivotAll = 1 and SP_filter) or SP_filter = false)
and ((RangeAll = 1 and Range_filter) or Range_filter = false)
and ((TimeAll = 1 and Time_filter) or Time_filter = false)
and ((trend = 1 and Trend_filter) or Trend_filter = false)
and ((LDayAll = 1 and Day_filter) or Day_filter = false)
Then
Buy This Bar;
How do I do it?
For example, for my system, the basic signal is the crossover of two moving averages, and those are going to stay that way, but each crossover would get rated with a score from 1 to 10 by each of these parameters:
time at which it happens
RSI
volume
support/resistances
general trend (according to a different timeframe)
volatility
All these parameters are ready, but I don't know how to transform their action from a "veto" that gets rid of a trade not satisfying them, to just a "vote" that only discourages a trade.
Until now, I have used true/false so I could turn them off while testing, but even good parameters just end up hurting one another when they are used all together.
For example this is the long signal:
If CurrentBar > 1 And Fast Crosses Above Slow
and ((VFast > VCoeff * VSlow and Vol_filter) or Vol_filter = false)
and ((Close < PivPnt * (1 + S_PrTol) and PP_filter) or PP_filter = false)
and ((SPivotAll = 1 and SP_filter) or SP_filter = false)
and ((RangeAll = 1 and Range_filter) or Range_filter = false)
and ((TimeAll = 1 and Time_filter) or Time_filter = false)
and ((trend = 1 and Trend_filter) or Trend_filter = false)
and ((LDayAll = 1 and Day_filter) or Day_filter = false)
Then
Buy This Bar;
