Idea by - bird0
mq5 code author - barabashkakvn
This Expert Advisor (EA) employs the iStdDev indicator values from a sliding window over a specified Sliding Window Size in days. It calculates the average indicator value within this window, and if the current iStdDev exceeds this average, it signals a trading prohibition.
If trading is not prohibited, the EA then checks the Stochastic indicator:
if(stochastic[0]<25.0 && stochastic[1]-stochastic[2]>0.0)
m_need_open_buy=true;
if(stochastic[0]>75.0 && stochastic[1]-stochastic[2]<0.0)
m_need_open_sell=true;
Simultaneously, the EA monitors losing trades: as soon as it identifies a losing trade, it increases the lot size for the next trade to recover losses.
Positions are automatically closed once the total profit meets or exceeds the 'Minimum Profit' threshold.
IMPORTANT: This is a high-risk strategy! After a seemingly successful run, you risk losing your entire deposit!

Comments 0