Line in Sand

MQL5 Experts

Tâche terminée

Temps d'exécution 2 jours
Commentaires du client
Finished job quickly and was very responsive during creation process.

Spécifications


[IntrabarOrderGeneration = false]
Inputs:
Sample_StartTime( 1230) ,
Sample_EndTime (1231),
Initial_Numshares(1),
NumShares_Step (1),
Max_Shares (5),
Day_Profit_Target( 550 ),
ExitIntraTrade(true),
Price(close);
Input:
____Show______ ("Show Items"),
Show_HH_LL_of_SamplingTime (True),
Show_EntryHigh_Entry_Low (True);

vars:
NP( 0 ),
OPP( 0 ),
PLB4Today( 0 ),
ProfToday( 0 ),
MP(0),
tradeON(false),
myTradePTgtPts(0),
myDayPTarget(0),
PriceLStick (0),
NumShares(Initial_Numshares),
LastProfitLoss(0),
TT(0);
TT = TotalTrades;
LastProfitLoss = PositionProfit(1);
MP = MarketPosition;
NP = NetProfit ;
OPP = OpenPositionProfit ;
{**************************************
Initialize at beginning of strategy
**************************************}
once begin
{****************************************
Multiply day profit target per contract
by the number of contracts
*****************************************}
myDayPTarget = {NumShares *} Day_Profit_Target;
end;
{************************************************* *****
Initialize at beginning of day (for day chart)
NOTE: for 24 hour charts use "if date = Sample_StartTime ..."
************************************************** *****}

{********************************************
At end of every bar calculate today's profit
*********************************************}
ProfToday = OPP ; // Profit today
{************************************************* *******
Turn off entries when a day profit or loss target it hit
************************************************** *******}
if ExitIntraTrade then begin
{************************************************* *****
Check profit and loss on every bar and exit intraTrade
************************************************** *****}
if ProfToday >= myDayPTarget then begin
tradeON = false;
if MP = 1 then begin
sell ("ProfitHit_LX") next bar at market;
end
else if MP = -1 then begin
buyToCover ("ProfitHit_SX") next bar at market;
end;
end;
end
else begin
{****************************************
Check profit and loss only when flat
*****************************************}
If MP = 0 then begin
if ProfToday >= myDayPTarget then begin
tradeON = false;
end ;
end;
end;
Variables:
HighVal( 999999 ) ,
LowVal( 0 ) ;
if Date <> Date[1] then
begin
HighVal = 0 ;
LowVal = 999999 ;
end ;
if Time > Sample_StartTime and Time <= Sample_EndTime then
begin
// collect HH & LL during Smapling Time
HighVal = MaxList( High , HighVal ) ;
LowVal = MinList( Low, LowVal ) ;
// plots
If Show_HH_LL_of_SamplingTime then begin
//HH
Value1 = TL_new(d[1],t[1],HighVal,d,t,HighVal);
TL_Setstyle(value1,5);
TL_Setcolor(value1, darkcyan);
TL_Setsize(value1,1);
//LL
Value2 = TL_new(d[1],t[1],LowVal,d,t,LowVal);
TL_Setstyle(value2,5);
TL_Setcolor(value2, darkmagenta);
TL_Setsize(value2,1);
end;
If Show_EntryHigh_Entry_Low then begin
//EH
Value3 = TL_new(d[1],t[1],HighVal,d,t,HighVal);
TL_Setstyle(value3,5);
TL_Setcolor(value3, cyan);
TL_Setsize(value3,1);
//LL
Value4 = TL_new(d[1],t[1],LowVal,d,t,LowVal);
TL_Setstyle(value4,5);
TL_Setcolor(value4, magenta);
TL_Setsize(value4,1);
end;
end ;

If Time > Sample_StartTime then begin
PriceLStick = ((HighVal + LowVal)/2);
If TT <>TT[1] then begin
If LastProfitLoss >= 0 then NumShares = Initial_Numshares;
If LastProfitLoss <0 then NumShares = NumShares + NumShares_Step;
If NumShares >= Max_Shares then NumShares = Max_Shares;
end;
If NumShares > Initial_Numshares and LastProfitLoss > 0 then NumShares = Initial_Numshares;

If Currentbar > 2 and Price crosses over PriceLStick then
Buy ("PriceLSLong") NumShares shares next bar at market;

If Currentbar > 2 and Price crosses under PriceLStick then
Sell short ("PriceLSShort") NumShares shares next bar at market;
end;

Répondu

1
Développeur 1
Évaluation
(878)
Projets
1390
67%
Arbitrage
117
32% / 42%
En retard
215
15%
Gratuit
Commandes similaires
I trade in future indices of a Brazilian brokerage via MT5 and would like to import the data of another future index (djia future - which does not exist at the brokerage where I operate) into a new window, showing its price and volume variations in the shortest possible time. This new Symbol should also have the capability to be displayed in candlestick mode and adjustments in its timeframe. I will use an indicator
I have an EA with the sourse code but instead of using an FX blue copier to invert the trades i want the EA to reverse its Strategy. For example if the EA wants to buy it will sell. And the stop loss and take profit will be inverted also
Hi I'm looking for a developer who can improve on an existing basic EA that isn't quite working correctly due to a lack of comprehension from the previous coder on the logic. It's a hedging system that trades in the opposite direction to a bad entry by entering every x pips until the average of all the bad trades and the good trades are in profit. It then closes all of them at the same point which is in profit by x
Hello everybody I would like to modify an existing indicator. I want to create a Dashboard that will display alerts created by my personal indicator called TREND. It will have to display alerts created on several timeframes and for several currencies. Each currency will need to be able to modify its own TREND indicator settings. The TREND indicator settings will be accessible by double-clicking on the currency name
I need a Martingale Expert Advisor that can hedge using Pending Order Grid. It will use indicators such as stochastic oscillator and moving average. I will provide details when you contact me
Trading bot 100 - 500 USD
I need an MQL4 trading bot with this features : 1. Trading 24/7 2. hedged for any unexpected trade reflection or losses 3. connected to the news 4. pauses during the news only if needed , because already it has a footprint tool 5. Always aims for a higher profit 6. Has a footprint tool for an accurate signals 7. never miss any opportunity 8. has turtle trading strategy 9. capable to start trading 1000$ capital 10. it
Hi! I would like an expert MT4 developer to create an EA based only on MACD. I will give more details about the timeframe, lot size, parameters of MACD, and trade conditions in private. Thank You
Fyemess Hotcold 50+ USD
*Strategy:* - Buy when the 50-day moving average crosses above the 200-day moving average - Sell when the 50-day moving average crosses below the 200-day moving average *Code:* ``` //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ int OnInit() { return(INIT_SUCCEEDED); }
hola necesito convertir un ea mt4 a mt5 tengo los codigos fuentes de mq4 por favor aplicar al trabajo agradeceria su tiempo asi que por favor necesito que trabaje de la misma que trabaja en mt4 solo quiero conversion y si hay algun error por favor corregir
i want an EA that enters based on the form of a candle if the lower wick is bigger then the rest of the candle i want buy and if the upperwick is bigger then the rest of the candle i want a sell single, i want it to enter with the sl 1 tick lower or higher then the lower or upperwick depening on buy or sell trade. then the stoploos needs to move when the trade goes to 0,5% sl too break even, when trad eis on 1% sl to

Informations sur le projet

Budget
100 - 250 USD
Pour le développeur
90 - 225 USD
Délais
1 jour(s)