Spezifikation
This is an simple Ea based on price action. I am testing this strategy... The EA will have 2 price level (Sell_Level and Buy_Level) and when price moves up above the Sell_Level and then back down thru Sell_Level, then the EA will sell at market.
When price moves down below the Buy Level and then back up thru the Buy_Level, then the EA will buy at market.
extern parameters
Lot size : 0.1
Risk per trade : 5%
Day Timing: 15:00 to 14:59 (This will define each day from 15:00 to 14:59)
Trading Hours: 15:00 to 22:59
Stop Loss (pips) : 5
Take Profit (pips) : 5
Trailing Stop (pips) : 4 (if 0 then EA just take close position when it hits Take Profit)
Sell_Level : Open/High/Low/Close (default - open)
Buy_Level : Open/High/Low/Close (default - open)
*********************
Sell_Level is equal to the highest Open (depend on extern parameter) price since “Start of Day” 15:00
Buy_Level is equal to the lowest Open (depend on extern parameter) price since “Start of Day” 15:00
Previous_Day_High is equal to the Price of yesterday’s High (15:00 to 14:59)
Previous_Day_Low is equal to the Price of yesterday’s Low (15:00 to 14:59)
Current_Day_High is equal to the High price since “Start of Day” 15:00
Current_Day_Low is equal to the Low price since “Start of Day” 15:00
Sell_Level and Buy_Level will be updated at each new price bar from start of day.
Sell_Level and Buy_Level will be reset at end of each day. 14:59
Previous_Day_High, Previous_Day_Low, Current_Day_High, Current_Day_Low will also be reset at end of each day. 14:59
Sell Entry
- Current_Day_High < Previous_Day_High.
- When price goes up above Sell_Level and then come back down thru Sell_Level, Sell at Market.
Buy Entry
- Current_Day_Low > Previous_Day_Low.
- When price goes down below Buy_Level and the come back up thru Buy_Level, Buy at Market.
Trailing Stop
The EA is to trail the trade's TP once it has hit Take Profits level. If Trailing Stop = 0, then EA just take profit without trailing.
e.g. if TP = 5 and Trailing Stop = 4, then
when trade is 5 pips in profit, the SL will be moved to Breakeven + 1 pip.
when trade is 9 pips in profit, the SL will be moved to 5 pips