Input parameters for v1.080 #261
Locked
kenorb
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Brief
EA31337 Lite is divided into the following separate strategies:
each one working separately on M1, M5, M15 and M30 timeframes.
User settings
General EA Parameters
Trailing Parameters
TrailingStop (int)
Default trailing stop loss value (in pips) for each opened order.
DefaultTrailingStopMethod (ENUM_TRAIL_TYPE)
Default trailing stop loss method. This is usually suppressed by the strategy specific method. Check Enumerations section for more details.
TrailingStopOneWay (bool), suggested value: TRUE
If TRUE, then trailing stop moves only in one direction. Otherwise can move in both ways.
TrailingProfit (int)
Default trailing profit take value (in pips) for each opened order.
DefaultTrailingProfitMethod (ENUM_TRAIL_TYPE)
Default profit take method. This is usually suppressed by the strategy specific method. Check Enumerations section for more details.
TrailingProfitOneWay (bool), suggested value: TRUE
If TRUE, then trailing profit moves only in one direction. Otherwise can move in both ways.
TrailingStopAddPerMinute (int), suggested value: 0 (disabled)
Decrease trailing stop (in pips) for each opened order per each bar. Set 0 to disable.
Order Parameters
LotSize (double), suggested value: 0 for auto
Default lot size to trade. Set 0 for auto calculation which is based on available free margin, account leverage, RiskRatio and broker minimum/maximum values. If your broker supports micro trading, then make sure that TradeMicroLots is enabled.
TakeProfit (double), suggested value: 0 for unlimited
Take profit value in pips which is limit when to close the order with profit. If set to 0, the profit take is controlled by DefaultTrailingProfitMethod (which is recommended).
StopLoss (double), suggested value: 0 for unlimited
Stop loss value in pips which is limit when to close the order with loss. If set to 0, the profit take is controlled by DefaultTrailingStopMethod (which is recommended).
MaxOrders (int), suggested value: 0 for auto
Maximum orders to open at the same time. Set 0 for auto detection which is calculated based on the available free margin, leverage, lot size and RiskRatio.
MaxOrdersPerType, suggested value: 0 for auto
Maximum orders to open at the same time per strategy. Set 0 for auto detection which is calculated based on the maximum orders allowed and activated strategies.
MaxOrdersPerDay (not implemented yet)
MinimumIntervalSec (int), suggested value: 0 to disable
Minimum interval between subsequent trade signals.
TradeMicroLots (bool), default: TRUE
Set to TRUE, if your broker supports micro trades.
Risk Parameters
RiskRatio (double), suggested value: 0 for auto
Risk ratio value. Set 1.0 to default, 2.0 to risk twice as normal or 0 for auto calculation which is based on equity/balance ratio and number of active strategies (it's usually low for balance less than 2000).
MinimalizeLosses (bool), suggested value: FALSE
Experimental option to minimalize the losses. So if order is profitable, the trailing stops are tighten up.
Boosting Parameters
Boosting parameters are checked every hour, on the hour. This is useful for low-balance accounts during non-predictable periods when you'd like to disable non-profitable strategies to decrease the risk. Or when you would like to boost your profit when specific strategy is profitable for specific period of time,
BestDailyStrategyMultiplierFactor, default value: 1.0
Lot multiplier boosting factor for the most profitable daily strategy.
BestWeeklyStrategyMultiplierFactor, default value: 1.0
Lot multiplier boosting factor for the most profitable weekly strategy.
BestMonthlyStrategyMultiplierFactor, default value: 1.0
Lot multiplier boosting factor for the most profitable monthly strategy.
WorseDailyStrategyDividerFactor, default value: 1.0
Lot divider factor for the worse profitable daily strategy.
WorseWeeklyStrategyDividerFactor, default value: 1.0
Multiplier boosting factor for the most profitable weekly strategy.
WorseMonthlyStrategyDividerFactor, default value: 1.0
Multiplier boosting factor for the most profitable monthly strategy.
Settings for MA (Moving Average) indicator strategy
MA1_Enabled (bool)
MA5_Enabled (bool)
MA15_Enabled (bool)
MA30_Enabled (bool)
Enable MA strategy for specific timeframe (M1, M5, M15 or M30).
MA_Period_Fast (int)
MA_Period_Medium (int)
MA_Period_Slow (int)
Averaging period for calculation for fast, medium and slow moving average.
MA_Shift (int), default value: 0
MA_Shift_Fast (int)
MA_Shift_Medium (int)
MA_Shift_Slow (int)
Index of the value taken from the indicator buffer. Shift relative to the previous bar (+1).
MA_Shift_Far (int)
Far shift. Shift relative to the 2 previous bars (+2).
MA_Method (ENUM_MA_METHOD)
Moving Average method. It can be any of ENUM_MA_METHOD enumeration values.
MA_Applied_Price (ENUM_APPLIED_PRICE)
Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values.
MA1_OpenMethod (bitwise int), valid range: 0-127.
MA5_OpenMethod (bitwise int), valid range: 0-127.
MA15_OpenMethod (bitwise int), valid range: 0-127.
MA30_OpenMethod (bitwise int), valid range: 0-127.
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
MA_OpenLevel (double)
Minimum open level (in pips) between moving averages to raise the trade signal.
MA_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for MA. Set 0 to use default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
MA_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for MA. Set 0 to use default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
Settings for the MACD indicator strategy
MACD1_Enabled (bool)
MACD5_Enabled (bool)
MACD15_Enabled (bool)
MACD30_Enabled (bool)
Enable MACD strategy for specific timeframe (M1, M5, M15 or M30).
MACD_Fast_Period (int)
Fast EMA averaging period.
MACD_Slow_Period (int)
Slow EMA averaging period.
MACD_Signal_Period (int)
Signal line averaging period.
int MACD_Applied_Price (ENUM_APPLIED_PRICE), valid range: 0-6
MACD applied price (See: ENUM_APPLIED_PRICE).
MACD_Shift (int)
Past MACD value in number of bars. Shift relative to the current bar the given amount of periods ago.
MACD_ShiftFar (int)
Additional MACD far value in number of bars relatively to MACD_Shift.
MACD_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for MACD. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
MACD_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for MACD. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
MACD_OpenLevel (double)
Open level (in pips) to consider trade signal.
MACD1_OpenMethod (bitwise int), valid range: 0-31.
MACD5_OpenMethod (bitwise int), valid range: 0-31.
MACD15_OpenMethod (bitwise int), valid range: 0-31.
MACD30_OpenMethod (bitwise int), valid range: 0-31.
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
Settings for the Alligator indicator strategy
Alligator1_Enabled (bool)
Alligator5_Enabled (bool)
Alligator15_Enabled (bool)
Alligator30_Enabled (bool)
Enable Alligator strategy for specific timeframe (M1, M5, M15 or M30).
Alligator_Jaw_Period (int)
Blue line averaging period (Alligator's Jaw).
Alligator_Jaw_Shift (int)
Blue line shift relative to the chart.
Alligator_Teeth_Period (int)
Red line averaging period (Alligator's Teeth).
Alligator_Teeth_Shift (int)
Red line shift relative to the chart.
Alligator_Lips_Period (int)
Green line averaging period (Alligator's Lips).
Alligator_Lips_Shift (int)
Green line shift relative to the chart.
Alligator_MA_Method (ENUM_MA_METHOD)
MA method (See: ENUM_MA_METHOD).
Alligator_Applied_Price (ENUM_APPLIED_PRICE)
Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values.
Alligator_Shift (int)
The indicator shift relative to the chart.
Alligator_Shift_Far (int)
The indicator shift far relative to the chart.
Alligator_TrailingStopMethod ENUM_TRAIL_TYPE
Trailing Stop method for Alligator. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
Alligator_TrailingProfitMethod ENUM_TRAIL_TYPE
Trailing Profit method for Alligator. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
Alligator_OpenLevel (double)
Minimum open level between moving averages to raise the signal.
Alligator1_OpenMethod (bitwise int), Valid range: 0-255.
Alligator5_OpenMethod (bitwise int), Valid range: 0-255.
Alligator15_OpenMethod (bitwise int), Valid range: 0-255.
Alligator30_OpenMethod (bitwise int), Valid range: 0-255.
Currently there is only one default open method. Further methods are under development. See Open Methods for more details.
Settings for the RSI indicator strategy
RSI1_Enabled (bool)
RSI5_Enabled (bool)
RSI15_Enabled (bool)
RSI30_Enabled (bool)
Enable RSI-based strategy for specific timeframe (M1, M5, M15 or M30).
RSI_Period (int)
Averaging period for calculation.
RSI_Applied_Price (ENUM_APPLIED_PRICE). Valid range: 0-6.
RSI applied price (See: ENUM_APPLIED_PRICE).
RSI_Shift (int)
Shift relative to the chart.
RSI_OpenLevel (int), suggested value: 20
Open level to raise the trade signal.
It's calculated as (50 - open_level) for buy, or (50 + open_level) for sell, so for instance 20, means that the open level for buy is 20 and for sell is 70. When 0, it's 50 for both.
RSI_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for RSI. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
RSI_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for RSI. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
RSI1_OpenMethod (bitwise int), valid range: 0-255.
RSI5_OpenMethod (bitwise int), valid range: 0-255.
RSI15_OpenMethod (bitwise int), valid range: 0-255.
RSI30_OpenMethod (bitwise int), valid range: 0-255.
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
RSI_DynamicPeriod (bool), suggested value: FALSE
Experimental option to predict a better RSI period each hour.
Settings for the SAR indicator strategy
SAR1_Enabled (bool)
SAR5_Enabled (bool)
SAR15_Enabled (bool)
SAR30_Enabled (bool)
Enable SAR-based strategy for specific timeframe (M1, M5, M15 or M30).
SAR_Step (double), default value: 0.02
Stop increment for SAR.
SAR_Maximum_Stop (double), default value: 0.2
Maximum stop value.
SAR_Shift (int)
Shift relative to the chart.
SAR_OpenLevel (double)
Open gap level to raise the trade signal (in pips).
SAR_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for SAR. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
SAR_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for SAR. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
SAR1_OpenMethod (bitwise int), valid range: 0-127
SAR5_OpenMethod (bitwise int), valid range: 0-127
SAR15_OpenMethod (bitwise int), valid range: 0-127
SAR30_OpenMethod (bitwise int), valid range: 0-127
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
Settings for the Bands indicator strategy
Bands1_Enabled (bool)
Bands5_Enabled (bool)
Bands15_Enabled (bool)
Bands30_Enabled (bool)
Enable Bands-based strategy for specific timeframe (M1, M5, M15 or M30).
Bands_Period (int)
Averaging period to calculate the main line.
Bands_Applied_Price (ENUM_APPLIED_PRICE), valid range: 0-6.
Bands applied price (See: ENUM_APPLIED_PRICE).
Bands_Deviation (double)
Number of standard deviations from the main line.
Bands_Shift (int)
The indicator shift relative to the chart.
Bands_Shift_Far (int)
The indicator shift relative to the chart.
Bands_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for Bands. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
Bands_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for Bands. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
Bands1_OpenMethod (int), valid range: 0-512
Bands5_OpenMethod (int), valid range: 0-512
Bands15_OpenMethod (int), valid range: 0-512
Bands30_OpenMethod (int), valid range: 0-512
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
Settings for the Envelopes indicator strategy
Envelopes1_Enabled (bool)
Envelopes5_Enabled (bool)
Envelopes15_Enabled (bool)
Envelopes30_Enabled (bool)
Enable Envelopes-based strategy for specific timeframe (M1, M5, M15 or M30).
Envelopes_MA_Period (int)
Averaging period to calculate the main line.
Envelopes_MA_Method (ENUM_MA_METHOD)
MA method (See: ENUM_MA_METHOD).
Envelopes_MA_Shift (int)
The indicator shift relative to the chart.
Envelopes_Applied_Price (ENUM_APPLIED_PRICE)
Applied price (See: ENUM_APPLIED_PRICE), valid range: 0-6.
Envelopes1_Deviation (double)
Envelopes5_Deviation (double)
Envelopes15_Deviation (double)
Envelopes30_Deviation (double)
Percent deviation from the main line for specific timeframe.
Envelopes_Shift (int)
The indicator shift relative to the chart.
Envelopes_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for Bands. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
Envelopes_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for Bands. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
Envelopes1_OpenMethod (int), valid range: 0-255
Envelopes5_OpenMethod (int), valid range: 0-255
Envelopes15_OpenMethod (int), valid range: 0-255
Envelopes30_OpenMethod (int), valid range: 0-255
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
Settings for the WPR indicator strategy
WPR1_Enabled (bool)
WPR5_Enabled (bool)
WPR15_Enabled (bool)
WPR30_Enabled (bool)
Enable WPR-based strategy for specific timeframe (M1, M5, M15 or M30).
WPR_Period (int)
Averaging period for calculation.
WPR_Shift (int)
Shift relative to the current bar the given amount of periods ago. Suggested value: 1.
WPR_OpenLevel (int)
Open level to consider trade signal. Normally the values of WPR are negative, however we're using inverted value, so it's always positive.
It's calculated as (50 + open_level) for buy, or (50 - open_level) for sell, so for instance 20, means that the open level for buy is 70 and for sell is 20. When 0, it's 50 for both.
WPR_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for WPR. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
WPR_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for WPR. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
WPR1_OpenMethod (int), valid range: 0-127
WPR5_OpenMethod (int), valid range: 0-127
WPR15_OpenMethod (int), valid range: 0-127
WPR30_OpenMethod (int), valid range: 0-127
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
Settings for the DeMarker indicator strategy
DeMarker1_Enabled (bool)
DeMarker5_Enabled (bool)
DeMarker15_Enabled (bool)
DeMarker30_Enabled (bool)
Enable DeMarker-based strategy for specific timeframe (M1, M5, M15 or M30).
DeMarker_Period (int)
Averaging period for calculation.
DeMarker_Shift (int)
Shift relative to the current bar the given amount of periods ago.
DeMarker_OpenLevel (double), valid range: 0.0-0.4, suggested value: 0.2
It's calculated as (0.5 - open_level) for buy, or (0.5 + open_level) for sell, so for instance 0.2, means that the open level for buy is 0.2 and for sell is 0.7. When 0, it's 0.5 for both.
DeMarker_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for DeMarker. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
DeMarker_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for DeMarker. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
DeMarker1_OpenMethod (int), valid range: 0-63
DeMarker5_OpenMethod (int), valid range: 0-63
DeMarker15_OpenMethod (int), valid range: 0-63
DeMarker30_OpenMethod (int), valid range: 0-63
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
Settings for the Fractals indicator strategy
Fractals1_Enabled (bool)
Fractals5_Enabled (bool)
Fractals15_Enabled (bool)
Fractals30_Enabled (bool)
Enable Fractals-based strategy for specific timeframe (M1, M5, M15 or M30).
Fractals_TrailingStopMethod (ENUM_TRAIL_TYPE)
Trailing Stop method for Fractals. Set 0 to default (DefaultTrailingStopMethod). See: ENUM_TRAIL_TYPE.
Fractals_TrailingProfitMethod (ENUM_TRAIL_TYPE)
Trailing Profit method for Fractals. Set 0 to default (DefaultTrailingProfitMethod). See: ENUM_TRAIL_TYPE.
Fractals1_OpenMethod (int), valid range: 0-63
Fractals5_OpenMethod (int), valid range: 0-63
Fractals15_OpenMethod (int), valid range: 0-63
Fractals30_OpenMethod (int), valid range: 0-63
Bitwise open method for each timeframe to open the trade signal. See Open Methods for more details.
Market parameters
MinPipChangeToTrade (double)
Minimum pip change to trade before the bar change. Set 0 to process every tick. Lower is better for smaller spreads.
MinVolumeToTrade (int)
Minimum volume to trade.
MinPipGap (int)
Minimum gap in pips between trades of the same strategy.
TrendMethod (bitwise int), valid range: 0-127
Trend method calculation based on the open and close price values of the less timeframes (M15-MN1).
For example, if price was opened below previous close price, the trend is considered bearish, etc.
MaxOrderPriceSlippage (int)
Maximum price slippage for buy or sell orders (in pips) when opening the order (See: OrderSend).
DemoMarketStopLevel (int)
Value of stop level in points (MODE_STOPLEVEL). It's usually 0 for demo, therefore we're hardcoding our value to simulate real market conditions.
MagicNumber (int), default value: 31337
Order magic number used as EA and strategy identifier.
It can use +40 on top of it (each one for each strategy).
Use different number when running multiple instances of this EA on the same account.
MaxTries (int)
Number of maximum attempts to execute the order. Re-tries doesn't block EA execution time, as they're queued by the task manager.
Settings for logging & messages
PrintLogOnChart (bool), suggested value: TRUE
When TRUE, print EA statistics on the current chart.
VerboseErrors (bool)
When TRUE, print errors to the journal log
VerboseInfo (bool)
When TRUE, print info messages to the journal log
VerboseDebug (bool)
When TRUE, print debug messages to the journal log.
VerboseTrace (bool) - not available in Lite version
When TRUE, print trace messages to the journal log.
WriteReport (bool)
When TRUE, write report into the file on exit.
When VerboseDebug is TRUE, it'll be printed to the journal log as well.
Settings for User Interface & Experience
SendEmailEachOrder (bool)
If TRUE, send the e-mail for each opened order.
SoundAlert (bool)
If TRUE, play sound for each opened and closed order.
SoundFileAtOpen (string)
Sound filename to play when order is opened.
SoundFileAtClose (string)
Sound filename to play when order is closed.
ColorBuy (color), default value: Blue
Color of the opening arrow on the chart.
ColorSell (color), default value: Red
Color of the closing arrow on the chart.
Beta Was this translation helpful? Give feedback.
All reactions