Line in Sand

MQL5 Experts

Trabalho concluído

Tempo de execução 2 dias
Comentário do cliente
Finished job quickly and was very responsive during creation process.

Termos de Referência


[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;

Respondido

1
Desenvolvedor 1
Classificação
(878)
Projetos
1390
67%
Arbitragem
117
32% / 42%
Expirado
215
15%
Livre
Pedidos semelhantes
I want to build an indicator or EA that calculates the statistics on an instrument, and show the statistical distribution of the calculated sample statistics. The statistics will be based on Open high low close of a candle. I want the right to the EA and the source code I want to be able to change to different timeframes and get the statistics on those time frame. When i apply the indicator to intraday timeframe, i
Expert Adviser (EA) - MQL5 Candlestick Bar spike Symbols: XAUUSD , GBPUSD and other main symbols time Frame: Keep on current time frame (should work on 1min, 5min, 15 min , 1 hr , 4hr and other time frames also) Indicator - Candlestick Bar Buying signal - Candlestick bar open price - (minus) 200 pips (then buying should be placed) Sell signal - Candlestick bar open price + (Plus) 200 pip s (then selling should be
There are clients who want to buy at fantastic prices, EA prices start at $5000-$50,000 dollars. Developers better be careful with this, because initially you pretend to ask for a backtest, via Telegram ask to forward it to Telegram yourself or your family, even though at that time you did it and you added him as your friend, actually at the same time after you forwarded your EA. , he has stolen your EA. It's best to
Expert advice mt4 30 - 35 USD
Hello Could you could assist me with a project that I read about? Please let me know if you can develop the bot after I provide you the URL. I believe that much of the code is provided
I NEED AN EXPERT ADVISOR BASED ON AN ORDERBLOCK INDICATOR.IT WILL USE ZONES CREATED BY ORDERBLOCK TO OPEN BUY SELL POSITIONS IT HAS SOME DETAILED FUNCTIONS BASIC AND REVERSE STRATEGY,MULTIPLIER,ADD POSITION E.T.C. IT WILL USE TRAILING STOP LOSS AND SOME OTHER CLOSE SYSTEMS
Hello, can you help me with with a project i read about. Can i send you the link and you tell me if you can build the bot please. I think most of the code is supplied. Regards Steve
Modify The Source Code to a Working Expert Advisor. Attached Are .Mq5 Files That I Want To Modify. 1 is The Indicator , The Other is an Expert Advisor, But It is not Working. Once I Compile it, It Says: ' property tester_inidicator "arrows_curves" has been implicitly added during compilation because the indicator is used in iCustom function 0 0
Input based MT5 EA 30 - 40 USD
Hi there, I need an input based MT5 EA created from scratch. I have a detailed list of the inputs I require and how they should be coded. I also require a clean and well presented interface on the chart to represent certain data of the EA as it trades. Experienced coders only, must speak English
Expert Advisor 30 - 35 USD
Hello! I'd like to get a quote from you. I want to build a simple Expert Advisor that does martingale hedging like in the attached picture, but that allows me to specify the price zone and exits in points. I would like to be able to manually open the first trade with whatever lot size I choose at market price and have the following trades/orders be opened automatically with lot sizes according to the multiplier set
I am looking for developer who can develop an Expert Advisor based on Martingale with Pending Order Grid for Hedging. I am very happy to provide the detail requirement if you get in touch

Informações sobre o projeto

Orçamento
100 - 250 USD
Desenvolvedor
90 - 225 USD
Prazo
1 dias