Specification
Hello I need a ROBOT MT4 to tick based on two indicators
- Robot Indicators
• D1RaitisCyFilter.mql4: This indicator gives the direction of the signal, it determines if the positions opened by the robot must be buying or selling
• MA: moving average This indicator determines the general trend of the market
- General settings of the robot
• MA: Simple, Exponential
• Period: 200 (default)
• Lot Size: Static, Based on Stop Loss Percentage
• Static: 0.01 lot (default)
• SL Risk Percentage: 1% (default)
• Stop Loss (pips): 30 (default)
• Take profit(Pips): 30 (default)
• TARGET HIGH (capital percentage): 3% (default)
Explanation: The Target HIGH is used for all indicator buy signals above the MA And for all sell signals below the MA
• TARGET LOW (capital percentage): 1% (default)
Explanation: The Target LOW is used for all sell signals above the MA And for all buy signals below the MA
- Robot strategy.
1- Purchase order
• Step 1-1: The D1RaitisCyFilter.mql4 indicator sends a buy signal (Two successive green bars)
• Step 1-2: The formation of a first bullish candle “after” the buy signal of the D1RaitisCyFilter.mql4 indicator from step 1-1
• Stage 1-3: The robot only opens buy orders after the close of each bullish candle
2- Sell order • Step 2-1: The D1RaitisCyFilter.mql4 indicator sends a sell signal (Two successive orange bars) • Step 2-2: The formation of a first bearish candle "after" the sell signal of the D1RaitisCyFilter.mql4 indicator from step 2-1 • Step 2-3: The robot only opens sell orders after the close of each bearish candle 3-: The closing of orders Step 3-1: Closing of orders by SL If a single position hits the Stop loss, the robot closes all current positions, and the current signal is no longer valid, the robot waits for the next signal from the D1RaitisCyFilter indicator to start opening positions again Step 3-2: The closing of orders by opposite signal of the D1RaitisCyFilter.mql4 indicator If an opposite signal of the D1RaitisCyFilter.mql4 indicator appears, the robot also closes all open positions and the open signal is not more valid Step 3-3: Closing orders with TARGET The robot closes all open positions when the Target defined in parameters is reached Example: PRACTICAL SCENARIO EXAMPLE of the robot
I have a balance of $10,000
Robot settings
MA ,Single
Period 200
TARGET LOW (capital percentage): 1%
TARGET HIGH (capital percentage): 3%
The market price of the sell signal the D1RaitisCyFilter indicator from step 2-1 is below my SMA 200
The chosen Target is therefore Target HIGH: 3%
This sell signal causes the opening of sell positions, after each bearish candle
I have open sell orders in progress
My floating profits bring my equity to $10,300
My account equity = $10,300, 3% ($10,000) = $300
The robot closes all open positions
My balance now is $10,300
My signal is still valid, I have no stop loss hit on my open positions (Step 3-1 not verified)
, I do not currently have an opposite buy signal (Step 3-2 not verified)
The robot starts opening sell positions again after each bearish candle
(it always opens positions in the direction of the D1RaitisCyFilter indicator signal from step 2-1)
The robot's new target is 3% ($10,300) = $309
When the equity reaches 10,300 + $309 = $10,609, the robot closes all open positions and so on
If the price of the next buy signal is also below the SMA 200
The chosen Target will be Target LOW: 1%
The robot's new target is 1% ($10,609) = $106.09
When the equity reaches 10,609 + $106.09 = $10,715,
the robot closes all open positions and so on