Spécifications
Cross Over Robot Signal Algorithm
Magic Number:
· User adjustable magic number value.
Exponential Moving Averages:
· Entry of 4 EMA's. Example: MA1 = W, MA2 = X, MA3 = Y, MA4 = Z
Stop Loss Logic:
· Detection of previous high for shorts or previous low for longs in order to place stop loss X amount beyond that value. If disabled, defaults to a user defined stop loss value.
· Ability to set stop loss to Break Even at X points in profit and have a Break Even Target of X. Also the option to enable and disable. Example: If price is currently 100 points in profit, then move stop loss to break even target of 7 points profit.
· Trailing stop loss with definable activation point, trailing distance, and trailing intervals. Also the option to enable and disable. Example: Activate trailing stop loss once it is 250 points in profit, and trail by 200 points indefinitely every 5 points of price increase in profit.
Money Management:
· Lot size based on risk percentage of the account balance if stop loss were to be hit. Example: If stop loss is 200 points, and percentage of account risk total is $200, then lot size will be 1.00 ($1 per point per lot).
· Trades to be executed per the above stop loss logic and user defined take profit values.
· Option to disable, if disabled, defaults to a user defined lot size.
EMA Signal to Open Trade Logic:
· At least 3 selectable and definable distance parameters between EMA values with definable historical candle period to compare. Example: MA3 Min Distance From MA4 3 candle periods ago = 30 points, MA 1 Distance from MA3 3 candle periods ago = 40 points, etc. If set, all must be true in order to execute the trade. So for this, user must be able to select which MA's to compare with distance entry, and the user must be able to select how many candle periods to compare, for example if user wants to compare 4 candle periods ago, then simply enter 4 or to disable candle periods simply enter 0. Option to disable this feature.
· EMA Crossing, user selectable which two EMA's to cross in order to execute the trade. Example: If MA1 > MA3, then allow longs, IF MA1 < MA3 then allow shorts. For the sake of other code logics, MA 1-4 are in order from smallest to greatest. So if the small MA is on top this will be a long signal, and if the greater MA is on top, this will be a short signal.
· User able to enter EMA Crossing signal expiration periods. Example, if user allows for 5 candle periods after the EMA crossing, but the below candle signal logic has not yet been validated in 5 candle periods, then the MA cross over signal will be invalidated until the next cross over which will reset the candle period counter. Option to disable this feature as well.
· User defined Max Trade Positions per EMA crossing.
Candle Signal to Open Trade Logic:
· Option to open trade after definable X amount of retracement candles, then take the next signal candle. Example, for a long, if user enters 3 retracement candles, then there needs to be at least 3 or more bear candles before the close of a bull candle appears. An entry of 0 will mean no retracement candles required and entry can take place on the first bull candle that appears regardless of prior candles.
· Option to require if previous candle close price to be below a selectable EMA for longs or above a selectable EMA for shorts. Basically this trumps the above retracement rule above if the user prefers the retracement candle to touch and bounce off a specified EMA before taking the trade or used in combination with the retracement rule above. Option to disable this if required.
· Trades executed upon candle closing if all EMA and Candle signals are true. Closed bull candle for long entries, closed bear candle for short entries.
Trade Closing Logic:
· Trades can be closed by hitting the stop loss or defined take profit values.
· Option to close trades during a specified EMA crossing without waiting for the candle to close. An option can be added to wait for candle close before confirming a close signal. Example: The EA opened a long position that is still going strong. When MA1 crosses below MA2, close all longs immediately without waiting on candle closing. Visa versa for shorts. This setting can have an option to disable as well.
Comment:
· User definable comment entry for open trades.