Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Fluctuate - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 2 reads | 0 comments |

Idea from: Nikolay Khrushchev

Code mq5: Barabashkakon

EA only works on hedging accounts!

Fluctuation-based EA trading: EA sets pending orders to increase the number of lots and in the opposite direction, sell stop-loss orders or buy stop-loss orders.

Each time, the EA starts a trading cycle after the start time and end time fall within the allowed time interval provided that the EA has no pending orders and no open positions. Open positions have pending stop-loss orders attached. The position size depends on the value parameters of Money Management and "Money Management" , while the volume of pending stop orders depends on the batch coefficient and the parameters of multiplying the volumes of all positions .

The position direction is determined according to the following rules:

#0 bar closing price > #1 bar closing price -> open a buy position; otherwise -> open a sell position

The stop-loss order type depends on the open position:

If buying, set a sell stop; if selling, set a buy stop

Pending stop-loss orders are set to step from the current price. Trailing Stop and Trailing Step are further enabled along with the profit tracking mechanism ( monetary profit target and minimum equity ).

When the pending order is triggered, a pending stop-loss order to increase the number of lots will be set again in the opposite direction.

It is recommended to run the optimization over a smaller time frame. First, look for the Stop Loss , Take Profit and Step parameters.


Attachment download

📎 fluctuate.mq5 (71.41 KB)

Source: MQL5 #22788

Verification code Refresh