AW Daily Breakout - Fully automated trading advisor, trading on the breakout of the extremes of the previous day using pending orders. Each order has a fixed StopLoss. Places two pending orders in the opposite direction every day, then opens a market position. Accompanies market orders with Trailing and Breakeven. Uses AutoLot, suitable for FIFO rules.
Daily at the specified time in a variable " Time to open Pending orders" the EA places two pending orders in both directions (BUY and SELL).
The location of pending orders is calculated taking into account the current volatility in the variable "Days to analyze". That is, the advisor calculates price movements in the specified time period. Within the limits of price volatility for the specified period, pending orders will be placed at the lowest and highest levels.
You can adjust the width of the corridor for placing pending orders. Orders will be placed if at the moment for opening orders, the current price is not located within the boundaries "Percent for zone". Variable values "Percent for zone" can be set in the range from "0" to "1". The value "0" means there are no restrictions for placing orders. The higher the value, the narrower the corridor for placing orders.
For example, in the variable "Percent for zone" the value "0.25" will be set, which means that if at the moment for placing an order the price is located at the upper mark at 25% of the total width of the corridor, then only Sell order. If the price is in the lower mark, then only Buy order. If the price is not in these marks at the moment of opening, then both pending orders will be opened.
After the pending order becomes a market order, that is, the price reaches the specified mark. The order will open with the volume specified in the variable "Size of the order" or "Volume of deposit for one Size of the order with AutoLot" when using an autolot.
A market order is closed:
By trailing - turns on when the price specified in the variable passes "Trailing Start in points" distance, then pulls up behind the price if the unidirectional movement continues through the distance specified in the variable "Trailing Step in points".
By breakeven - as soon as the price has passed above the opening price and reached profit on "Profit in points to add Breakeven" points, the EA will set StopLoss at the open price with the specified profit. Thus, the price does not fall below the opening price.
By the selected stop loss, classic or dynamic. Classic static StopLoss, set in points, for each separate order the same value. The dynamic stop loss value changes depending on the market volatility. Regulated by variable Dynamic SL factor. The higher the value of the variable, the higher the stop loss value.
A pending order is closed:
If before the occurrence specified in the variable "Time to close Pending orders" time, the pending order does not become a market order, then when the specified time comes, the pending order will be deleted.
Size of the order - The volume for opening pending orders.
Enable AutoLot size calculation - Use automatic lot calculation. Autolot allows you to save risk settings when changing the deposit.
Volume of deposit for one "Size of the order" with AutoLot - The amount of the deposit for the amount specified in the variable "Size of the order", is set when setting a variable "Enable AutoLot size calculation" to "true".
Days to analyze - The number of days used to determine the calculation of the minimum and maximum prices for pending orders.
Percent for zone ( from 0 to one) - A zone in which pending orders will not be placed. When "0" is used, there is no zone, that is, orders will be placed. The higher the value of the variable, the narrower the corridor for placing orders.
Time to open Pending orders - The time at which pending orders will be placed.
Time to close Pending orders - The time at which pending orders will be deleted.
Trailing Start in points - The value in points, after opening a market order when this volume of points is passed, Trailing will be set for the order. Trailing moves StopLoss to follow the price, when the price starts to move towards profit, after the price reversal, Trailing will close the position with a profit.
Trailing Step in points - Step in points, after passing which Trailing will follow the price. Trailing will follow the price an unlimited number of times as long as the unidirectional trend continues. Each time Trailing is pulled up after passing the specified step value.
StopLoss in points - The volume of a fixed StopLoss for each order.
Use Dynamic StopLoss - Use dynamic StopLoss, not displayed on the chart.
Dynamic SL factor - Calculated based on the current volatility. Using the coefficient, you can adjust the StopLoss. The higher the Factor, the higher the StopLoss value.
Use Breakeven - This is a function in which StopLoss will be equal to the order opening price excluding broker commissions and swaps. It is set for each separate profitable order on the current symbol.
Profit in points to add Breakeven - Profit of the order in points, upon reaching which StopLoss will be set at breakeven
Level of Breakeven in points - As soon as the price went above the opening price and went into profit by "Profit in points to add Breakeven" points, the advisor will set StopLoss at the opening price + the specified profit. A variable so that the price cannot bring a loss and is closed in the event that Breakeven is reached as soon as it moves in the opposite direction to the profitable direction.
Maximum slippage in points - Maximum allowable slippage in points for opening and closing orders
Maximum size of order - Maximum volume for one order. Measured in lots
Magic - The main identifier of the advisor's orders. Used primarily to identify orders.
Spread limit - The maximum allowable spread for opening orders.
Order comment - Commentary for orders opened by the advisor.
Allow to open OP _ BYU orders - Allow sending orders of the OP_BUY type.
Allow to open OP_SELL orders - Allow sending orders of the OP_SELL type.
Allow to open new orders after close - Allow to open new orders after all orders are closed.
Show panel of advisor - Show or hide the advisor panel.
Font size in panel - Adjusting the font size in the advisor panel.
Maximum number of orders - The maximum number of orders in the basket of the same type.
No posts found