The grid expert created for the hedging mode terminal mode. Working from the average price levels of the bars. The Expert Advisor provides protection against stopouts. However, I highly recommend using a reasonable level of stop loss and avoid uncontrolled drawdowns on the account!
The minimum deposit for trading is 75$
Before the big news on the market, I recommend disabling the Expert Advisor and closing all positions!
The minimum deposit for trading is 75$
Before the big news on the market, I recommend disabling the Expert Advisor and closing all positions!
- TakeProfit — Take Profit value in points;
- StopLoss — Stop Loss value in points;
- MAGICMA-Magic number of the Expert Advisor;
- Median0-Integer value, the size of the 1st array for calculating the average price level;
- Median1-Integer value, the size of the 2nd array for calculating the average price level;
- Median2-Integer value, the size of the 3rd array for calculating the average price level;
- range — The number of points of deviation from the level of the average price of bars for placing turn-down and limit orders;
- Lag — The distance in points between the average price of the bars collected in the array and the market price;
- ords — Number of pending or limit orders;
- KPOs — the minimum ratio of equity and account balance below which positions are closed(first, the position with the minimum negative loss is closed);
- _period — working timeframe;
- FixedLots-Switch modes for the volume of lots of pending orders (false-we trade a percentage of the deposit, true-we trade the minimum lot);
- _lot — Minimum lot for trading on a fixed volume of orders;
- MaximumRisk — The maximum percentage of the deposit in the auction;
- lastFriday-Switch for closing positions for the weekend(true-close all positions and remove all orders on Friday 15 minutes before the end of trading, false-leave everything as it is for the weekend).