Guide
How does the FlexiMA x FlexiST - Strategy [presentTrading] strategy work ?
This strategy combines two custom indicators, FlexiMA and FlexiST, to generate trade signals based on trend agreement.
The FlexiMA component measures the deviation between the price and a series of moving averages with dynamically changing lengths. It then calculates the median of these deviations to create a single oscillator value. Similarly, the FlexiST component measures the deviation between the price and multiple SuperTrend lines, each with a different Average True Range (ATR) length, and also calculates the median.
The strategy's logic is based on the alignment of these two indicators:
- Long Entry: A buy signal is triggered when the median values of both FlexiMA and FlexiST are positive.
- Short Entry: A sell signal is triggered when the median values of both FlexiMA and FlexiST are negative.
- Exit: A position is closed when the median value of either indicator flips to the opposite sign.