Line in Sand

MQL5 Experts

Job finished

Execution time 2 days
Feedback from customer
Finished job quickly and was very responsive during creation process.

Specification


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

Responded

1
Developer 1
Rating
(878)
Projects
1390
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Free
Similar orders
I have a documented strategy that i will like to turn into an expert advisor, without excluding any features in it, this is to be develop for mt4 and mt5, i will thrill to receive bidding from and also assurance if you can do it Thanks
Discussion in forex forum: Young trader says: I know a very perfect and riskless way to profit in forex! Spot and future prices will be equal on the future’s expiration. So, let’s buy cheaper instrument and sell expensive one and enjoy profits! Old trader says: You gullible being! Don’t you know swap will “eat” all your imagined profits and even more?! I say: Perhaps swap will destroy profit on price difference
ICT, SMC, PAMETNI NOVAC KONCEPTI, PAMETNI NOVAC, koncept pametnog novca, podrška i otpor, analiza trenda, radnja cijena, tržišna struktura, blokovi naloga, BOS/CHoCH, blokovi razbijača , pomak momentuma, zona ponude i potražnje/blokovi naloga , jaka neravnoteža, HH/LL/HL/LH, jaz fer vrijednosti, FVG, Zone premije i popusta , Fibonacci retracement, OTE, Likvidnost na strani kupnje, Likvidnost na strani prodaje
I already have my indicator working flawlessly on MQL4 but I will love to extend it's functionalities by adapting into an expert advisor. If you think you can do this, kindly inbox to better discussion
Hello... I have a trading view strategy that is working perfectly fine, i want to convert from manual to bots. I need an expert who can help me convert pine script strategy to trading bot with years of experience. Below is the short file
Are you using MetaTrader 4 for trading but wondering if it's time to switch to MetaTrader 5? We're here to guide you through the process and show you why upgrading could be a game-changer for your trading journey. Making the switch from MetaTrader 4 to MetaTrader 5 might sound daunting, but we're here to make it easy for you. Our team will handle the conversion process, ensuring that all your trading data and
My trading platform is showing some list of error and i want want to add some features to correct the Error. I need an Expert in this field with Experience to fix the issues for me Below is the Source File
I need smart, professional, and fast programmer for doing this project quickly, that have experience in EA with minimum 500 projects finish, and have good review and reputation from their client Share your link review, if you not qualified, dont apply! I will bidding the programmer from experience, review, reputation, price, and days working My EA using Moving Average, Average True Range, and using consecutives
Need a programmer to build an EA to do BUY/SELL based on indicator alerts. I dont have a source file of indicator but i have a alert file of indicator. If interested then please reply me back asap. thanks
Hi, I'm looking for an experienced developer to create an Expert Advisor for MT5 based on variable distance and size order openings. The developer must have already completed similar work. Thanks

Project information

Budget
100 - 250 USD
For the developer
90 - 225 USD
Deadline
1 day(s)