-
-
Notifications
You must be signed in to change notification settings - Fork 36
EA_Base template parameters
Timeframe to trade
Whether to check entry rules every tick (Live) or on bar close. Live mode gives more false signals but takes an action more quickly. One parameter for the entry and one for the exit.
Position size. The unit is defined by the Position size type parameter
Unit for the Position size parameter.
-
$. Position size defined in the amount of currency to be spent on the lot using the current leverage;
-
In contracts. The absolute number of contracts;
-
% of equity. $ of equity to be spent on the lot using the current leverage;
-
Risk in % of equity. Maximum affordable loss in % of equity. Calculated using the stop loss and the correct equity. After the stop loss hit you will lose around the specified % of equity.
lot_size = (equity * lots / 100) / (stop_distance * unit_cost)
Used slippage in points.
This parameter allows limiting trading to long/short only.
This parameter allows to inverse the trading logic.
Whether to close long trades on short signal/short on long signal.
Allows to limit number of trades opened at one point of time.
General limit for buy+sell positions. Used to limit number of total positions.
General limit for buy positions.
General limit for sell positions.
Stop loss type.
- Do not use. No stop loss;
- Set in %. Defined in % from the entry price;
- Set in Pips. Defined in pips;
- Set in $. Defined in currency. When the stop loss will be hit you will loss around that amount of money.
- Set in % of stop loss. Not used for a stop loss;
- Set in absolite value (rate). Absolute rate defined by the user.
Stop loss. The unit is defined by the Stop loss type parameter.
Stop loss trailing type.
- No trailing. Disabled;
- Use trailing in pips. The stop loss will be moved to the specified number of pips after the same amount of price movement;
- Use trailing in % of stop. The stop loss will be moved to the specified number of % after the same amount of price movement.
Trailing step. The unit defined by the Trailing type parameter.
Distance to trigger the trailing. When set to 0 the trailing will start immideatly. This parameter allows to start trailing only in profit (when set to > 0).
Breakeven moves stop once after certain amount of profit is hit. This parameter defines breakeven type. Parameters are the same as for the Stop loss type parameter.
When to trigger the stop loss move.
Target level in pips for the stop loss after the breakeven level is hit.
Take profit type.
- Do not use. No take profit;
- Set in %. Defined in % from the entry price;
- Set in Pips. Defined in pips;
- Set in $. Defined in currency. When the take profit will be hit you will gain around that amount of money.
- Set in % of stop loss. Ration to the stop loss. Use 1 to use 1:1 take profit:stop loss. When 2 is used the take profit will be twice as far as the stop loss, etc.;
- Set in absolite value (rate). Absolute rate defined by the user.
Take profit value. The unit will be defined by the Take profit type parameter.
Magic number of orders
Start of the trading time and stop of the trading time. hhmmss format is used. Use the same value to all-day trading.
Whether to limit trading based on day of the week.
Start day for the trading
Start time for the trading.
Stop day for the trading.
Stop time for the trading.
When set to true all positions and orders will be deleted/closed when trading hours will end.