İş tamamlandı
Şartname
Hello TradingTool,
i started now a new job for you.
Sorry for the mistakes!
Thanks and regards
Daniel
Thanks for your interest in creating my ea. Sorry for my english i am a german trader.
The ea i need is not very special, but i am not good enough to code it in mql4.
I need two experts in one file if possible. One trades with trend and one trades against trend.
Extern variables:
Choose if only one or both trading systems are active
Trade with Trend = True or false
Trade against Trend = True or false
Standard
TP_Trend = 0 -> not necessary for my system but maybe later
TP_CounterTrend = 0 -> not necessary for my system but maybe later
SL_Trend = 0 -> not necessary for my system but maybe later
SL_CounterTrend = 0 -> not necessary for my system but maybe later
TrailSL_Trend = Trend = 0 -> not necessary for my system but maybe later
TrailSL_CounterTrend = 0 -> not necessary for my system but maybe later
StartLots_Trend = 0.10
StartLots_CounterTrend = 0.10
Progression_Trend = 1.19 -> Lot-Increment for each order in trenddirection
Progression_CounterTrend = 1.0 -> Lot-Increment for each order in countertrenddirection
MaxOrders_Trend = 15
MaxOrders_CounterTrend = 10
Slippage = 5
MagicNr_Trend = 12345
MagicNr_CounterTrend = 54321
Equity_Protection = 50 %
-> if equity goes under 50 percent of balance close oldest order
OpenSameLevel = True or false
-> if true do not open a trade if any existing trade are on the same pricelevel
example: if signal at 1.2413 and there is an existing trade at 1.2422 then no trade
open only if price goes over 1.2442 (1.2422 + opendistance) or if price goes under 1.2402 (1.2412 – opendistance)
OpenDistance_Trend = 20
OpenDistance_CounterTrend = 20
Extern iCustom variables
For HolyGrail 1.6
MainPeriod = 10
ADXPeriod = 7
MinBars = 10000
For SilverTrendBar
Ssp = 50
Kmin = 1.6
Kmax = 50.6
Countbars = 10000
DistanceAlert = 35
Signals
CounterTrend-EA
Buy:
Open Buy-Order if “HolyGrail” shows blue arrow (open order every blue arrow) and “SilverTrendBar” is red
Close all Buy-Orders if “SilverTrendBar” is blue and the first red arrow appears.
Sell:
Open Sell-Order if “HolyGrail” shows red arrow (open order every red arrow) and “SilverTrendBar” is blue.
Close all Sell-Orders if “SilverTrendBar” is red and the first blue arrow appears.
At trade nr. 10 there is one thing special. The HolyGrail shows blue arrow but SilverTrendBar is not red. Here the ea should open a buy trade because there is no opposite signal before (this is a few bars later at trade nr. 11). The same on opposite direction: if there is a red arrow and the SilverTrendBar change to red and there is no opposite signal before then open a sell trade. Sorry little difficult!
Trend-EA
Buy:
Open first Buy-Order if “SignalTrendBar” change to blue.
Open next Buy-Order if “HolyGrail” shows blue arrow (open order every blue arrow) and “SilverTrendBar” is blue.
Close all Buy-Orders if “SilverTrendBar” change to red.
Sell:
Open first Sell-Order if “SignalTrendBar” change to red.
Open next Sell-Order if “HolyGrail” shows red arrow (open order every red arrow) and “SilverTrenBar” is red.
Close all Sell-Orders if “SilverTrendBar” change to blue.
I hope you understand what I mean and it’s possible to make this into an ea.
Thanks for you work!
Regards
Daniel
If you have questions let me know please!