They do indeed.
Potential support and resistance, as opposed to actual support and resistance.
Support means “swings-low by price bars.”
Resistance means “swings-high by price bars.”
But to identify those, you need to be willing to look at price movements, not indicators.
And that will never catch on. ![:sweat_smile: :sweat_smile:](https://f.bpcdn.co/images/emoji/twitter/sweat_smile.png?v=12)
Yep. The initial output of EAs is looking good. Ichimoku seems a good one on USDJPY. ![:slight_smile: :slight_smile:](https://f.bpcdn.co/images/emoji/twitter/slight_smile.png?v=12)
(Attention: Below is NOT a MQL-Code! This EA is NOT tested on robustness and the time span is too short!)
// Backtested on USDJPY_M1_UTCPlus01 / H1, 2014.05.01 - 2020.05.01
//--------------------------------------------------------------------
//--------------------------------------------------------------------
// Strategy Parameters
//--------------------------------------------------------------------
int MagicNumber = 11111;
int IchimokuKjnSenCrsBshTnkPrd = 9;
int IchimokuKjnSenCrsBshKjnPrd = 26;
int IchimokuKjnSenCrsBshSnkPrd = 52;
double PriceEntryMult = 2.3;
double MoveSL2BECoef = 1.5;
int SL2BEAddPips = 2;
int ProfitTarget = 185;
int StopLoss = 150;
double TrailingStopCoef = 3.7;
int TrailingActivation = 40;
Main chart = Current Symbol / Current TF;
//--------------------------------------------------------------------
// Trading options logic
//--------------------------------------------------------------------
Don't Trade On Weekends = false (Friday 0038 - Sunday 0038);
Exit at End Of Day = false (2304);
Exit On Friday = true (2040);
LimitSignalsTimeRange = false (0100 - 0700, Exit at End: false, Orders to close: All);
LimitMaxDistanceFromMarketPrice = false; //Limit max distance
MaxDistanceFromMarketPct = 6; //Max distance %
MaxTradesPerDay = 0;
Min SL: 0, Max SL: 0, Min PT: 0, Max PT: 0; // in ticks/pips, 0 means unlimited
//--------------------------------------------------------------------
// Trading rule: Trading signals (On Bar Open)
//--------------------------------------------------------------------
LongEntrySignal = Ichimoku(Main chart,IchimokuKjnSenCrsBshTnkPrd, IchimokuKjnSenCrsBshKjnPrd, IchimokuKjnSenCrsBshSnkPrd)[3] price crosses KijunSen bullish;
ShortEntrySignal = Ichimoku(Main chart,IchimokuKjnSenCrsBshTnkPrd, IchimokuKjnSenCrsBshKjnPrd, IchimokuKjnSenCrsBshSnkPrd)[3] price crosses KijunSen bearish;
LongExitSignal = false;
ShortExitSignal = false;
//--------------------------------------------------------------------
// Trading rule: Long entry (On Bar Open)
//--------------------------------------------------------------------
if LongEntrySignal
{
// Action #1
Open Long order at (Ask + (PriceEntryMult * BarRange(Main chart)[3])) Stop;
Order valid for 22 bars;
Duplicate trades: disabled;
Replacing pending orders: allowed;
Stop Loss = StopLoss pips;
Profit target = ProfitTarget pips;
Move SL to BE = MoveSL2BECoef * ATR(175), add SL2BEAddPips pips pips to BE;
Trailing Stop = TrailingStopCoef * ATR(155), TS Activation at TrailingActivation pips;
}
//--------------------------------------------------------------------
// Trading rule: Short entry (On Bar Open)
//--------------------------------------------------------------------
if (ShortEntrySignal
and Not LongEntrySignal)
{
// Action #1
Open Short order at (Bid - (PriceEntryMult * BarRange(Main chart)[3])) Stop;
Order valid for 22 bars;
Duplicate trades: disabled;
Replacing pending orders: allowed;
Stop Loss = StopLoss pips;
Profit target = ProfitTarget pips;
Move SL to BE = MoveSL2BECoef * ATR(175), add SL2BEAddPips pips pips to BE;
Trailing Stop = TrailingStopCoef * ATR(155), TS Activation at TrailingActivation pips;
}
//--------------------------------------------------------------------
// Trading rule: Long exit (On Bar Open)
//--------------------------------------------------------------------
if ((LongExitSignal
and Not LongEntrySignal)
and (MarketPosition("Any", MagicNumber, "") is Long))
{
// Action #1
Close all positions for Symbol = Any and Magic Number = MagicNumber;
}
//--------------------------------------------------------------------
// Trading rule: Short exit (On Bar Open)
//--------------------------------------------------------------------
if ((ShortExitSignal
and Not ShortEntrySignal)
and (MarketPosition("Any", MagicNumber, "") is Short))
{
// Action #1
Close all positions for Symbol = Any and Magic Number = MagicNumber;
}
Have a good day Ravenash.
I see you have achieved some results.
Could you share the executable file of your new EA with which
you achieved these results?
Please, this is very interesting.
hi , would you please create an EA that sets R/R if SL is moved ? on chart clicks EA first checks if there is any open order , then if user moves SL, it automatically move TP with 1/1 RR according to SL size
@krampe69 finally I have 3 EAs on USDJPY H1 for you. I had to restart several times because of indicator adjustments.
Conditions: Of course, they are only for the demo account and for educational purposes! Furthermore, the strategies were created and tested on icmarkets RAW Spread Account. This is important as the results may differ from other brokers (spread/slippage/commission)! Starting deposit on the demo account is AT LEAST 1000 €/$
If this is okay for you, then PM me, @krampe69 .
The 3 EAs have brought the following results in 20 years of testing (don’t be surprised about the low return!) A fixed 50$ was assumed as the maximum amount to be lost per trade over the entire test period so that the EAs are easier to compare. I personally follow the 1% strategy).
Here is some data to the 3 EAs:
https://www.rabenesche.de/images/babypips/krampe/babypips-1.png
https://www.rabenesche.de/images/babypips/krampe/babypips-2.png
https://www.rabenesche.de/images/babypips/krampe/babypips-3.png
You can run the 3 EAs individually, but also together, as their correlation is very low.
https://www.rabenesche.de/images/babypips/krampe/portfolio_correlation.png
https://www.rabenesche.de/images/babypips/krampe/babypips-portfolio.png
If you have any questions, I will be happy to answer them.
Not interested in this EA? Or EAs? The one I picked of the 3 made his first move.
165 Pips
Hello, Happy Sunday to all.
Is this thread still active? I have a strategy I would like to be coded into an Expert Advisor (MT5), please.
Thanks in advance!
Regards.