Auftrag beendet
Spezifikation
The idea is an EA that compares current candle open price against previous candle close price, and then opens, closes positions or do nothing. No indicators are used. No lot management.
Not urgent (around 5 days). Prefer someone that takes time over agility.
Inputs
Lot_size = 0.000-infinite. Default = 0.02
Take_profit_type = Currency/Points. Default = Currency
Take_profit = 0.00-infinite. Default = 0.20 (note=must be "invisible" to avoid stop levels problem)
Stop_loss_type = Currency/Points. Default = Currency
Stop_loss = 0.00-infinite. Default = 1.00 (note=must be "invisible" to avoid stop levels problem)
Mode = 1/2. Default = 1
Mode 1 functioning =
New candle = if current candle open price is higher than previous candle close price, open buy position.
if current candle open price is lower than previous candle close price, close previous position and wait for next candle.
Next candle = repeat.
Mode 2 functioning =
New candle = if current candle open price is higher than previous candle close price, and there is no open position, open buy position.
if current candle open price is higher than previous candle close price, and there is an open position, do nothing.
if current candle open price is lower than previous candle close price, close open position and wait for next candle.
Next candle = Examrepeat.
ps: tick size and digits should be obtained from symbol's properties