Range, Low, High, Higher Provide input for Magic number. Provide True/false option for whether broker allows TP and SL to be set at same time as order is generated, of if they require order first and then set the TP and SL. Input: Broker_AllowsTPSL_With_Oder. Lot_Size_Percent_Equity = e.g 1%. For $100,000 account equity, if input is 1% then it uses 1 lot. 0.1% = 0.1 lot size. Lot size changes as account equity changes. Use market orders. Max_Draw_Down = e.g. 20%. If equity goes below 80% of last high equity, close all position and stop the EA. Start_Trade_GMT = e.g. 07:30 Stop_Trade_GMT = e.g. 14:00 Show all inputs and settings on LHS of chart. Show on Right Hand Side of chart the “max time passed new high equity” in days and hours from the last high equity until we reach new higher equity. When the new time in days and hours is longer than the old value, replace the old value with the new value. Max_Oders_Open_Same_Time: = e.g. 1, 2 , 3 etc. If = 1 it means only one order can be open. Only after this order is closed with TP or SL can another order open. Provide option true/false to enter orders only in direction of the trend (MA). Provide 2 MA inputs, one for fast MA e.g. = last 24 hourly candles, and one for slow MA e.g = last 10 daily candles. If we use this feature we want to enter BUY orders when the slow MA is in UP direction AND the fast MA is in UP direction AND fast MA is ABOVE the slow MA. Provide option for Max_Spread_Allowed = e.g. 1.6. If spread widens to 1.7 or above, no trade is entered. Wait for another set up. Show clearly on the chart the range lines (and center line A), lowest point B, the order entry zone limes using broken lines (dash lines) in the vicinity of point C, and the break out channel lines. Use different colors for the lines to make it clear. =========================================== Overview of EA: Example below is for sell orders. But opposite is true for buy orders. Market makes range. Maximum height of range, from top to bottom Max_Range_Top_to_Bottom_Percent_Movement = e.g. 2.4% price movement. Make sure I can use input with up to 4 decimal places e.g. 2.5479%. Range must last for Range_Minimum_Minutes = e.g. 5,000 minutes. Draw horizontal lines for the range - - top line, center line, bottom line - - on the chart after condition for range is met. Range lasts for specific time in minutes before it breaks out lower. We call this “Actual Range Minutes”. It’s not an input, but the EA make note of this time. Market breaks out of the range, moving lower to point B. Point B below the range and is the lowest point the market reaches. Point B must be minimum percent price movement below point A. Minimum_Percent_Movement_AB = e.g 0.4555% (need 4 decimal places for input). Market goes back up from lowest point B to point A (middle of the range) and continues higher to point C, within a certain time frame. We enter a sell order in the vicinity of point C. I will describe later. ================================ Time Limit to Enter Order: If time from where the market breaks out of the channel lower (start clock) to point B and then up to point C where we enter the sell order (stop clock), exceeds certain time, we don’t enter any order, cancel the set up. If Range Minutes Actual = e.g. 6,000 (EA made note of this, this is how long the range actually lasted) we use input Percent_Time_Limit_For_Order = e.g. 20%, This means from breakout until we enter the order, it cannot take longer than 1,200 minutes maximum (6,000 X 0.2). If it takes longer than 1,200 minutes, no order is entered, cancel the set up. ================================ Create an Order Entry Zone in the vicinity of point C. The zone has one line below point C and one line above point C. Oder entry zone lines are placed as follows: BA_percent_Order_Zone_Line_Closest_to_TP = e.g 80%. If BA distance = 100 pips then this order entry zone line will be 80 pips above line A. BA_percent_Order_Zone_Line_Furthect_From_TP = e.g 110%. If BA distance = 100 pips then this order entry zone line will be 110 pips above line A. So now we have an order entry zone that is 30 pips top to bottom. We are looking for a channel to develop INSIDE the order enter zone, with clear break out toward point A. Now we enter our sell order. Minimum_Minutes_Channel_Order_Entry = e.g. 30 means the market must range here for minimum 30 minutes before breaking out lower towards point A. Max_Percent_Movement__Channel_Order_Entry = e.g. 1.5% means price movement in this channel cannot exceed 1.5% up or down. Make sure input can be to 4 decimal places e.g. 0.5876% Break_Out_Percent_Channel_Order_Entry = e.g. 0.4777% means market makes a range inside the order entry zone, range is limited to a maximum percent price movement, for minimum minutes and then the market breaks out = e.g.0.4777% below the channel bottom line. Now we enter a sell order. Provide true/false option to detect average volume of the market while inside the channel. At the point where we have break out we must see volume has increase by at least Volume_Increase_Factor = e.g. 2, meaning at break out volume is 2 times greater than the average volume that occurred inside the channel. =============================================== Stop Loss: is percent above the highest point the market reached in the vicinity of point C. e.g after the market went to point B then up to point A the market reached a maximum high of 1.3090 then dropped to 1.3080, now a range formed between 1.3080 and 1.3070 and lasted minimum 30 minutes, then the market broke out at 1.3065 and we entered a sell order at 1.3065. SL_Percent_Highest/Lowest_Point = e.g. 0.2% So high point was 1.3090 x 0.2% is 0.0026 + 1.3090 = SL at 1.3116. (Make sure input can be set to 4 decimal places). Take profit: is a percent of BA distance. TP_Percent_BA = e.g. 80. If BA distance was actual 50 pips then the TP will be 50 x 0.80 = 40 pips. If input = 200% then we have TP of 100 pips. Provide true/false option to: Trail the SL and move to break even. Percent_Profit_Start_Trail = e.g. 0.5% means after order entry the market moves lower by 0.5% now we start trailing the stop above the sell order. SL_Trail_Distance = e.g. 0.7%. SL_Jumps_In_Percent_Increments = e.g. 0.1%. Move_to_Break_Even_Percent = e.g 0.15% means after we enter the sell order and the market moves 0.15% lower we move the SL to break even. After we move to break even we continue to trail the stop as the market moves lower.